Update of /cvsroot/monetdb/sql/src/server
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22284

Modified Files:
      Tag: Nov2009
        rel_select.mx 
Log Message:
Removed unnecessary test: if groupby == 0, we would have crashed a few
lines earlier already.

Found by Coverity.


Index: rel_select.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/rel_select.mx,v
retrieving revision 1.157.2.3
retrieving revision 1.157.2.4
diff -u -d -r1.157.2.3 -r1.157.2.4
--- rel_select.mx       3 Dec 2009 14:13:19 -0000       1.157.2.3
+++ rel_select.mx       4 Dec 2009 13:55:07 -0000       1.157.2.4
@@ -3281,7 +3281,7 @@
                return NULL;
        }
 
-       if (f == sql_where && !groupby) 
+       if (f == sql_where) 
                return sql_error(sql, 02, "%s: not allowed in WHERE clause",
                                toUpperCopy(alloca(strlen(aggrstr) + 1), 
aggrstr));
        


------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to