[interchange-cvs] interchange - heins modified
lib/Vend/SQL_Parser.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Mon Sep 15 14:26:00 EDT 2003
User: heins
Date: 2003-09-15 17:26:30 GMT
Modified: lib/Vend SQL_Parser.pm
Log:
* Parser was incorrectly reading two-character operators.
Revision Changes Path
2.7 +3 -3 interchange/lib/Vend/SQL_Parser.pm
rev 2.7, prev_rev 2.6
Index: SQL_Parser.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/SQL_Parser.pm,v
retrieving revision 2.6
retrieving revision 2.7
diff -u -r2.6 -r2.7
--- SQL_Parser.pm 1 Sep 2003 16:20:13 -0000 2.6
+++ SQL_Parser.pm 15 Sep 2003 17:26:30 -0000 2.7
@@ -1,6 +1,6 @@
# Vend::SQL_Parser - Interchange SQL parser class
#
-# $Id: SQL_Parser.pm,v 2.6 2003/09/01 16:20:13 mheins Exp $
+# $Id: SQL_Parser.pm,v 2.7 2003/09/15 17:26:30 mheins Exp $
#
# Copyright (C) 2002-2003 Interchange Development Group
# Copyright (C) 1997-2002 Red Hat, Inc.
@@ -38,7 +38,7 @@
use Vend::Util;
use Text::ParseWords;
use vars qw($VERSION);
-$VERSION = substr(q$Revision: 2.6 $, 10);
+$VERSION = substr(q$Revision: 2.7 $, 10);
sub new {
my $class = shift;
@@ -435,7 +435,7 @@
$lhs = $val;
}
elsif(! $op) {
- if(s/^([=!<>]+)(.+)/$1/) {
+ if(s/^([=!<>]+)([^=!<>]+)/$1/) {
$op = $1;
unshift @things, $2;
#::logDebug("found merged operator and righthand term $things[0]");
More information about the interchange-cvs
mailing list