Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25244/src/backends/monet5
Modified Files:
sql_scenario.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_scenario.mx
Index: sql_scenario.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_scenario.mx,v
retrieving revision 1.317
retrieving revision 1.318
diff -u -d -r1.317 -r1.318
--- sql_scenario.mx 31 Aug 2008 22:05:20 -0000 1.317
+++ sql_scenario.mx 6 Sep 2008 20:02:43 -0000 1.318
@@ -999,7 +999,8 @@
@c
be->q = NULL;
if (m->emode == m_execute) {
- be->q = qc_find(m->qc, m->sym->data.lval->h->data.ival);
+ assert(m->sym->data.lval->h->type == type_int);
+ be->q = qc_find(m->qc, m->sym->data.lval->h->data.i_val);
if (!be->q) {
err = -1;
sql_error(m, 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