Update of /cvsroot/monetdb/sql/src/server
In directory sc8-pr-cvs16:/tmp/cvs-serv17646/src/server

Modified Files:
        sql_select.mx 
Log Message:
added sql_prelude environment variable it allows for a prelude string which
is run before each sql client session is started.

fixed bug [ 1714814 ] View creation using a function....
(correctly check result of subquery)



Index: sql_select.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/sql_select.mx,v
retrieving revision 1.185
retrieving revision 1.186
diff -u -d -r1.185 -r1.186
--- sql_select.mx       1 May 2007 22:03:10 -0000       1.185
+++ sql_select.mx       8 May 2007 12:22:21 -0000       1.186
@@ -262,6 +262,12 @@
 
        scp = scope_open(scp);
        s = sql_subquery(sql, scp, sq, ek);
+       
+       if (!s) {
+               scp = scope_close(scp);
+               return NULL;
+       }
+
        /* create a table from a single value subquery result */
        if (s->key && s->nrcols == 0) {
                list *l = create_stmt_list();


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to