diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2011-12-05 18:04:47 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2011-12-05 18:04:47 +0100 |
commit | 6b0315b816c479f90117b69c9ff57d9c843b9397 (patch) | |
tree | 211b3c62f4d0ac1678855637e95b51c1a209cb3a /Bugzilla/DB | |
parent | 848da716b1624bd53d7ab18dde22b09b2a0163b9 (diff) | |
download | bugs-6b0315b816c479f90117b69c9ff57d9c843b9397.tar bugs-6b0315b816c479f90117b69c9ff57d9c843b9397.tar.gz bugs-6b0315b816c479f90117b69c9ff57d9c843b9397.tar.bz2 bugs-6b0315b816c479f90117b69c9ff57d9c843b9397.tar.xz bugs-6b0315b816c479f90117b69c9ff57d9c843b9397.zip |
Bug 550299: User fields are left blank in buglists and whines when local user accounts are used (i.e. they have no @company.com suffix)
r/a=mkanat
Diffstat (limited to 'Bugzilla/DB')
-rw-r--r-- | Bugzilla/DB/Oracle.pm | 7 | ||||
-rw-r--r-- | Bugzilla/DB/Pg.pm | 12 | ||||
-rw-r--r-- | Bugzilla/DB/Sqlite.pm | 6 |
3 files changed, 0 insertions, 25 deletions
diff --git a/Bugzilla/DB/Oracle.pm b/Bugzilla/DB/Oracle.pm index ceee1eb50..157eeca30 100644 --- a/Bugzilla/DB/Oracle.pm +++ b/Bugzilla/DB/Oracle.pm @@ -160,13 +160,6 @@ sub sql_string_concat { return 'CONCAT(' . join(', ', @params) . ')'; } -sub sql_string_until { - my ($self, $string, $substring) = @_; - return "SUBSTR($string, 1, " - . $self->sql_position($substring, $string) - . " - 1)"; -} - sub sql_to_days { my ($self, $date) = @_; diff --git a/Bugzilla/DB/Pg.pm b/Bugzilla/DB/Pg.pm index 386a67709..e59a638a4 100644 --- a/Bugzilla/DB/Pg.pm +++ b/Bugzilla/DB/Pg.pm @@ -192,18 +192,6 @@ sub sql_string_concat { return '(CAST(' . join(' AS text) || CAST(', @params) . ' AS text))'; } -sub sql_string_until { - my ($self, $string, $substring) = @_; - - # PostgreSQL does not permit a negative substring length; therefore we - # use CASE to only perform the SUBSTRING operation when $substring can - # be found withing $string. - my $position = $self->sql_position($substring, $string); - return "CASE WHEN $position != 0" - . " THEN SUBSTRING($string FROM 1 FOR $position - 1)" - . " ELSE $string END"; -} - # Tell us whether or not a particular sequence exists in the DB. sub bz_sequence_exists { my ($self, $seq_name) = @_; diff --git a/Bugzilla/DB/Sqlite.pm b/Bugzilla/DB/Sqlite.pm index fb6aaba97..e13fd18e1 100644 --- a/Bugzilla/DB/Sqlite.pm +++ b/Bugzilla/DB/Sqlite.pm @@ -237,12 +237,6 @@ sub sql_date_math { return "DATETIME($date, '$operator' || $interval || ' $units')"; } -sub sql_string_until { - my ($self, $string, $substring) = @_; - my $position = $self->sql_position($substring, $string); - return "SUBSTR($string, 1, $position - 1)" -} - ############### # bz_ methods # ############### |