[Jifty-commit] r5611 - in Jifty-DBI/trunk: lib/Jifty/DBI/Handle
Jifty commits
jifty-commit at lists.jifty.org
Tue Jul 29 15:11:23 EDT 2008
Author: trs
Date: Tue Jul 29 15:11:18 2008
New Revision: 5611
Modified:
Jifty-DBI/trunk/ (props changed)
Jifty-DBI/trunk/lib/Jifty/DBI/Handle/Pg.pm
Log:
r38125 at zot: tom | 2008-07-29 15:09:04 -0400
We accept IN or = as operators for array ref. values, so match against that (and do it case insensitively to boot)
Modified: Jifty-DBI/trunk/lib/Jifty/DBI/Handle/Pg.pm
==============================================================================
--- Jifty-DBI/trunk/lib/Jifty/DBI/Handle/Pg.pm (original)
+++ Jifty-DBI/trunk/lib/Jifty/DBI/Handle/Pg.pm Tue Jul 29 15:11:18 2008
@@ -175,7 +175,7 @@
if ( $self->_case_insensitivity_valid( $column, $operator, $value ) ) {
if ( $operator =~ /(?:LIKE|=|IN)/i ) {
$column = "LOWER($column)";
- if ( $operator eq 'IN' and ref($value) eq 'ARRAY' ) {
+ if ( $operator =~ /^(IN|=)$/i and ref($value) eq 'ARRAY' ) {
$value = [ map {"LOWER($_)"} @$value ];
} else {
$value = "LOWER($value)";
More information about the Jifty-commit
mailing list