Update of /cvsroot/monetdb/sql/src/server
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26374/server

Modified Files:
      Tag: SQL_2-22
        sql_select.mx 
Log Message:
we need to check for a failed call to sql_value_exp else we could crash on 
incorrect queries


Index: sql_select.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/sql_select.mx,v
retrieving revision 1.219.2.9
retrieving revision 1.219.2.10
diff -u -d -r1.219.2.9 -r1.219.2.10
--- sql_select.mx       21 Mar 2008 08:04:23 -0000      1.219.2.9
+++ sql_select.mx       21 Mar 2008 08:56:34 -0000      1.219.2.10
@@ -1223,7 +1223,7 @@
                /* the values which are aggregated together, no grp should
                 * be given there to optain the values */
                s = sql_value_exp(sql, scp, l->h->next->next->data.sym, /*grp 
*/ NULL, subset, f, ek);
-               if (s->nrcols <= 0 && subset) /* single value */
+               if (s && s->nrcols <= 0 && subset) /* single value */
                        s = stmt_const(first_subset(subset), s);
        }
 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to