Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21600

Modified Files:
        sql_gencode.mx 
Log Message:
output errors (allthough unexpected in this part of the code)



U sql_gencode.mx
Index: sql_gencode.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_gencode.mx,v
retrieving revision 1.279
retrieving revision 1.280
diff -u -d -r1.279 -r1.280
--- sql_gencode.mx      13 Jul 2008 14:20:09 -0000      1.279
+++ sql_gencode.mx      13 Jul 2008 14:54:45 -0000      1.280
@@ -2060,8 +2060,10 @@
                return;
        f->sql++;
        s = scope_sqlparse(m, NULL, f->imp, m_instantiate);
-       assert(s);
-       if (s) {
+       if (!s) {
+               fprintf(stderr, m->errstr);
+               return;
+       } else {
                stmt *opt;
                opt = optimize(m, s);
                stmt_destroy(s);


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to