Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory sc8-pr-cvs16:/tmp/cvs-serv21147
Modified Files:
sql.mx
Log Message:
Avoid entering an assertion error in the lower levels.
Index: sql.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql.mx,v
retrieving revision 1.222
retrieving revision 1.223
diff -u -d -r1.222 -r1.223
--- sql.mx 8 May 2007 20:33:35 -0000 1.222
+++ sql.mx 13 May 2007 18:05:58 -0000 1.223
@@ -1087,6 +1087,8 @@
sql_idx *i = mvc_bind_idx(m, s, iname);
(void) tname;
+ if( i== 0 || i->bat.ubid == 0)
+ return 0;
if (access == UPD || access == RD_UPD)
b = bind_uidx(tr, i, access);
else
@@ -1102,6 +1104,8 @@
sql_idx *i = mvc_bind_idx(m, s, iname);
(void) tname;
+ if( i== 0 || i->bat.ubid == 0)
+ return 0;
if (*access == UPD || *access == RD_UPD)
*b = append_uidx(tr, i, *access, ib);
else
@@ -1124,7 +1128,7 @@
BBPkeepref( *bid = b->batCacheid);
return MAL_SUCCEED;
}
- throw(SQL, "mvc_bind", "error");
+ throw(SQL, "mvc_bind", "limitation in transaction scope");
}
str
@@ -1145,7 +1149,7 @@
BBPkeepref( *bid = B->batCacheid);
return MAL_SUCCEED;
}
- throw(SQL, "mvc_append", "error");
+ throw(SQL, "mvc_append", "limitation in transaction scope");
}
@-
-------------------------------------------------------------------------
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