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

Modified Files:
      Tag: Nov2009
        sql_optimizer.mx 
Log Message:
Added NULL check for cname.  This "cannot happen".
Found by Coverity.


Index: sql_optimizer.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_optimizer.mx,v
retrieving revision 1.230.2.10
retrieving revision 1.230.2.11
diff -u -d -r1.230.2.10 -r1.230.2.11
--- sql_optimizer.mx    15 Nov 2009 18:36:40 -0000      1.230.2.10
+++ sql_optimizer.mx    2 Dec 2009 11:54:40 -0000       1.230.2.11
@@ -354,7 +354,7 @@
                                cnt = store_funcs.count_idx(i);
                                assert(cnt <= (size_t) GDK_oid_max);
                                rows = (oid) cnt;
-                       } else if (s && f == bindRef) {
+                       } else if (s && f == bindRef && cname) {
                                size_t cnt;
                                sql_table *t = mvc_bind_table(m, s, tname);
                                sql_column *c = mvc_bind_column(m, t, cname);


------------------------------------------------------------------------------
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