Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv7600/src/backends/monet5
Modified Files:
sql_scenario.mx
Log Message:
fix [ 1724151 ] mixing auto-commit with explicit transactions
recognise the special multi line mode of mapiclient file.
Index: sql_scenario.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_scenario.mx,v
retrieving revision 1.264
retrieving revision 1.265
diff -u -d -r1.264 -r1.265
--- sql_scenario.mx 22 May 2007 10:59:05 -0000 1.264
+++ sql_scenario.mx 29 May 2007 07:48:47 -0000 1.265
@@ -718,6 +718,18 @@
@c
while(more) {
more = FALSE;
+
+ /* Different kinds of supported statements sequences
+ A; -- single line s
+ A \n B; -- multi line S
+ A; B; -- compound single block s
+ A; -- many multi line
+ B \n C; -- statements in one block S
+ */
+ /* auto_commit on end of statement */
+ if (m->scanner.mode == LINE_N)
+ go = SQLautocommit(c,m);
+
if (go && in->pos >= in->len) {
ssize_t rd;
@@ -736,7 +748,7 @@
language = (be->console) ? 'S' : 0;
/* The rules of auto_commit require us to finish
- and start a transaction on the start of a new
statement */
+ and start a transaction on the start of a new
statement (s A;B; case) */
if( m->mode != m_debug )
go = SQLautocommit(c,m);
-------------------------------------------------------------------------
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