[Jifty-commit] r5722 - Jifty-DBI/branches/tisql/lib/Jifty/DBI

Jifty commits jifty-commit at lists.jifty.org
Thu Aug 14 20:26:18 EDT 2008


Author: ruz
Date: Thu Aug 14 20:26:17 2008
New Revision: 5722

Modified:
   Jifty-DBI/branches/tisql/lib/Jifty/DBI/Tisql.pm

Log:
* we don't treat IS NOT (NULL) as other negative ops

Modified: Jifty-DBI/branches/tisql/lib/Jifty/DBI/Tisql.pm
==============================================================================
--- Jifty-DBI/branches/tisql/lib/Jifty/DBI/Tisql.pm	(original)
+++ Jifty-DBI/branches/tisql/lib/Jifty/DBI/Tisql.pm	Thu Aug 14 20:26:17 2008
@@ -17,8 +17,8 @@
 my $re_sql_op_un  = qr{IS (?:NOT )?NULL}i;
 my $re_value = qr{$re_delim|[0-9.]+};
 
-my $re_op_positive = qr/^(?:=|IS|LIKE)$/i;
-my $re_op_negative = qr/^(?:!=|<>|IS NOT|NOT LIKE)$/i;
+my $re_positive_op = qr/^(?:=|IS|LIKE)$/i;
+my $re_negative_op = qr/^(?:!=|<>|NOT LIKE)$/i;
 my %invert_op = (
     '=' => '!=',
     '!=' => '=',


More information about the Jifty-commit mailing list