Commit db8c5141 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 493027: Update the comment in DB::Pg::sql_string_concat()

r=gerv a=glob
parent cd902140
...@@ -187,10 +187,9 @@ sub sql_date_math { ...@@ -187,10 +187,9 @@ sub sql_date_math {
sub sql_string_concat { sub sql_string_concat {
my ($self, @params) = @_; my ($self, @params) = @_;
# Postgres 7.3 does not support concatenating of different types, so we # PostgreSQL 8.3 and newer require an explicit coercion to text
# need to cast both parameters to text. Version 7.4 seems to handle this # to support concatenation of different data types.
# properly, so when we stop support 7.3, this can be removed.
return '(CAST(' . join(' AS text) || CAST(', @params) . ' AS text))'; return '(CAST(' . join(' AS text) || CAST(', @params) . ' AS text))';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment