Update of /cvsroot/monetdb/sql/src/server
In directory sc8-pr-cvs16:/tmp/cvs-serv31383/src/server

Modified Files:
        sql_updates.mx 
Log Message:
update new indices (those created in this transaction) using replaces on
the ibat (not inserts on the ubat)


Index: sql_updates.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/sql_updates.mx,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -d -r1.121 -r1.122
--- sql_updates.mx      10 May 2007 16:31:30 -0000      1.121
+++ sql_updates.mx      13 May 2007 20:46:17 -0000      1.122
@@ -1028,8 +1028,12 @@
                        }
 
                }
-               if (is) 
-                       list_append(l, stmt_insert(stmt_idxbat(i, UPD), is));
+               if (is) {
+                       if (i->base.flag == TR_NEW)
+                               list_append(l, stmt_replace(stmt_idxbat(i, 
INS), is));
+                       else
+                               list_append(l, stmt_insert(stmt_idxbat(i, UPD), 
is));
+               }
        }
        return res;
 }


-------------------------------------------------------------------------
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

Reply via email to