[Jifty-commit] r1333 - in Jifty-DBI/trunk: lib/Jifty/DBI/Handle

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Wed Jun 21 13:14:58 EDT 2006


Author: alexmv
Date: Wed Jun 21 13:14:54 2006
New Revision: 1333

Modified:
   Jifty-DBI/trunk/   (props changed)
   Jifty-DBI/trunk/lib/Jifty/DBI/Handle/Pg.pm

Log:
 r14152 at zoq-fot-pik:  chmrr | 2006-06-21 13:14:16 -0400
  * Case insensitive searches should be, euh, case insensitive in Pg


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	Wed Jun 21 13:14:54 2006
@@ -180,7 +180,7 @@
         $operator =~ s/LIKE/ILIKE/ig;
         return ( $column, $operator, $value );
     } elsif ( $operator =~ /=/ ) {
-        return ( "LOWER($column)", $operator, $value, "LOWER(?)" );
+        return ( "LOWER($column)", $operator, lc $value, "LOWER(?)" );
     } else {
         $self->SUPER::_make_clause_case_insensitive( $column, $operator,
             $value );


More information about the Jifty-commit mailing list