[interchange-cvs] interchange - heins modified lib/Vend/SQL_Parser.pm

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Mon Sep 1 13:20:00 EDT 2003


User:      heins
Date:      2003-09-01 16:20:13 GMT
Modified:  lib/Vend SQL_Parser.pm
Log:
* Fix bad DISTINCT handling, fixing re-opened bug #535. Thanks to Paul
  Vinciguerra for the cogent report.

Revision  Changes    Path
2.6       +3 -3      interchange/lib/Vend/SQL_Parser.pm


rev 2.6, prev_rev 2.5
Index: SQL_Parser.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/SQL_Parser.pm,v
retrieving revision 2.5
retrieving revision 2.6
diff -u -r2.5 -r2.6
--- SQL_Parser.pm	30 Jul 2003 04:00:45 -0000	2.5
+++ SQL_Parser.pm	1 Sep 2003 16:20:13 -0000	2.6
@@ -1,6 +1,6 @@
 # Vend::SQL_Parser - Interchange SQL parser class
 #
-# $Id: SQL_Parser.pm,v 2.5 2003/07/30 04:00:45 mheins Exp $
+# $Id: SQL_Parser.pm,v 2.6 2003/09/01 16:20:13 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.5 $, 10);
+$VERSION = substr(q$Revision: 2.6 $, 10);
 
 sub new {
 	my $class = shift;
@@ -816,7 +816,7 @@
 		}
 	}
 	elsif($raw =~ /\s/) {
-		$self->{distinct} = 1 if s/^distinct\s+//i;
+		$self->{distinct} = 1 if $raw =~ s/^distinct\s+//i;
 		my $title;
 		$title = $1 if $raw =~ s/\s+as\s+(.*)//;
 		if($title) {







More information about the interchange-cvs mailing list