[Rt-commit] r3988 - in Jifty-DBI/trunk: . lib/Jifty/DBI/Handle

autrijus at bestpractical.com autrijus at bestpractical.com
Mon Oct 24 09:51:31 EDT 2005


Author: autrijus
Date: Mon Oct 24 09:51:30 2005
New Revision: 3988

Modified:
   Jifty-DBI/trunk/META.yml
   Jifty-DBI/trunk/Makefile.PL
   Jifty-DBI/trunk/lib/Jifty/DBI/Handle/Pg.pm
Log:
* remove Want.pm from Jifty::DBI deps

Modified: Jifty-DBI/trunk/META.yml
==============================================================================
--- Jifty-DBI/trunk/META.yml	(original)
+++ Jifty-DBI/trunk/META.yml	Mon Oct 24 09:51:30 2005
@@ -7,7 +7,6 @@
   DBD::SQLite: 0
 requires:
   DBI: 0
-  Want: 0
   Encode: 2.11
   UNIVERSAL::require: 0
   Lingua::EN::Inflect: 0

Modified: Jifty-DBI/trunk/Makefile.PL
==============================================================================
--- Jifty-DBI/trunk/Makefile.PL	(original)
+++ Jifty-DBI/trunk/Makefile.PL	Mon Oct 24 09:51:30 2005
@@ -4,7 +4,6 @@
 license ('perl');
 version_from('lib/Jifty/DBI.pm');
 requires('DBI');
-requires('Want');
 requires('Encode'  => 2.11);
 requires('UNIVERSAL::require');
 requires('Lingua::EN::Inflect');

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	Mon Oct 24 09:51:30 2005
@@ -3,7 +3,6 @@
 
 use vars qw($VERSION @ISA $DBIHandle $DEBUG);
 use base qw(Jifty::DBI::Handle);
-use Want qw(want howmany);
 
 use strict;
 
@@ -139,17 +138,7 @@
         return ( $field, $operator, $value );
     }
     elsif ( $operator =~ /=/ ) {
-        if ( howmany() >= 4 ) {
-            return ( "LOWER($field)", $operator, $value, "LOWER(?)" );
-        }
-
-        # RT 3.0.x and earlier  don't know how to cope with a "LOWER" function
-        # on the value. they only expect field, operator, value.
-        #
-        else {
-            return ( "LOWER($field)", $operator, lc($value) );
-
-        }
+        return ( "LOWER($field)", $operator, $value, "LOWER(?)" );
     }
     else {
         $self->SUPER::_make_clause_case_insensitive( $field, $operator,


More information about the Rt-commit mailing list