]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 493027: Update the comment in DB::Pg::sql_string_concat()
authorFrédéric Buclin <LpSolit@gmail.com>
Fri, 23 Jan 2015 11:07:34 +0000 (12:07 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Fri, 23 Jan 2015 11:07:34 +0000 (12:07 +0100)
r=gerv a=glob

Bugzilla/DB/Pg.pm

index 4ec95725de80bb4c7dc56eb0a8208cb1282c5793..59231e2a6e4d5307cef301bcb4e8d4e4ae9fce5c 100644 (file)
@@ -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))';
 }