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

Modified Files:
        sql_session.mx 
Log Message:

next step towards making sql compile with the Microsoft compiler without 
(down-cast) warnings:
replacing lng-type member ival of union symdata by
int-type member i_val and lng-type member l_val
and (hopefully) making the remaining code use the
proper one in all places;
adding assertions for consistency checks.

changes are wrapped in CVS tags
"symdata-ival" & "symdata-i_val-l_val"


U sql_session.mx
Index: sql_session.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet4/sql_session.mx,v
retrieving revision 1.242
retrieving revision 1.243
diff -u -d -r1.242 -r1.243
--- sql_session.mx      9 Apr 2008 10:40:24 -0000       1.242
+++ sql_session.mx      6 Sep 2008 20:02:39 -0000       1.243
@@ -264,7 +264,8 @@
        if (c->emod & mod_record)
                Tparse = GDKusec();
        if (c->emode == m_execute) {
-               q = qc_find(c->qc, c->sym->data.lval->h->data.ival);
+               assert(c->sym->data.lval->h->type == type_int);
+               q = qc_find(c->qc, c->sym->data.lval->h->data.i_val);
                if (!q) {
                        err = -1;
                        sql_error(c, 2, "no prepared statement with the given 
id\n");


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to