Subject: | "convert" command seems to break for boolean columns |
Date: | Mon, 17 Mar 2014 12:16:18 -0700 |
To: | bug-SQL-Abstract [...] rt.cpan.org |
From: | Ryan Lang <rlang [...] me.com> |
I’m running version 1.77 with Postgres 9.2.2, and seem to have come across an issue with the convert method.
If my where clause includes a -bool/-not_bool value, set like the following:
my %where = (
-not_bool => ‘traded’
);
and I’m also using “convert=>’upper’”, then SQL::Abstract generates the following sql:
…WHERE NOT upper(“traded")…
This is improper SQL in Postgres: "function upper(boolean) does not exist”.
Looking under the hood (Line 645ish), it seems like whenever the column name is a scalar value, it will still do the convert function. Is this desired behavior?
Thanks for looking this over,
Ryan