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
......@@ -188,9 +188,8 @@ 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))';
}
......
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