summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/DB/Pg.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/Bugzilla/DB/Pg.pm b/Bugzilla/DB/Pg.pm
index 4ec95725d..59231e2a6 100644
--- a/Bugzilla/DB/Pg.pm
+++ b/Bugzilla/DB/Pg.pm
@@ -187,10 +187,9 @@ sub sql_date_math {
sub sql_string_concat {
my ($self, @params) = @_;
-
- # Postgres 7.3 does not support concatenating of different types, so we
- # need to cast both parameters to text. Version 7.4 seems to handle this
- # properly, so when we stop support 7.3, this can be removed.
+
+ # PostgreSQL 8.3 and newer require an explicit coercion to text
+ # to support concatenation of different data types.
return '(CAST(' . join(' AS text) || CAST(', @params) . ' AS text))';
}