Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=mkanat, a=justdave
sub sql_string_concat {
my ($self, @params) = @_;
- return join(' || ', @params);
+ return '(' . join(' || ', @params) . ')';
}
sub sql_fulltext_search {
# 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.
- return 'CAST(' . join(' AS text) || CAST(', @params) . ' AS text)';
+ return '(CAST(' . join(' AS text) || CAST(', @params) . ' AS text))';
}
sub bz_lock_tables {