Update of /cvsroot/monetdb/sql/src/server
In directory sc8-pr-cvs16:/tmp/cvs-serv31693/src/server
Modified Files:
sql_select.mx
Log Message:
renamed sql_prelude to sqlinit
fixed bug (crash) in parameters in cast expression
Index: sql_select.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/sql_select.mx,v
retrieving revision 1.188
retrieving revision 1.189
diff -u -d -r1.188 -r1.189
--- sql_select.mx 10 May 2007 08:40:24 -0000 1.188
+++ sql_select.mx 19 May 2007 12:18:15 -0000 1.189
@@ -806,12 +806,12 @@
}
}
if (l) {
- sql_type *ltpe = tail_type(l)->type;
+ sql_subtype *ltpe = tail_type(l);
l = check_types(sql, tpe, l, type_cast);
if (!l) {
/* we overwrite the error here */
sql->errstr[0] = 0;
- return sql_error(sql, 02, "CAST: cannot cast type '%s'
to type '%s'", ltpe->sqlname, tpe->type->sqlname );
+ return sql_error(sql, 02, "CAST: cannot cast type '%s'
to type '%s'", ltpe?ltpe->type->sqlname:"unknown", tpe->type->sqlname );
}
}
return l;
-------------------------------------------------------------------------
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