Update of /cvsroot/monetdb/sql/src/server
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4286/src/server

Modified Files:
        sql_updates.mx 
Log Message:
propagated changes of Sunday Jul 13 2008 - Monday Jul 14 2008
from the SQL_2-24 branch to the development trunk

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2008/07/13 - nielsnes: src/server/sql_updates.mx,1.138.2.3
fix bug in handling references (old/new values) in triggers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index: sql_updates.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/server/sql_updates.mx,v
retrieving revision 1.140
retrieving revision 1.141
diff -u -d -r1.140 -r1.141
--- sql_updates.mx      17 Jun 2008 10:35:13 -0000      1.140
+++ sql_updates.mx      14 Jul 2008 07:57:55 -0000      1.141
@@ -1188,7 +1188,7 @@
 }
 
 static stmt *
-insert_into(mvc *sql, dlist *qname, dlist *columns, symbol *val_or_q)
+insert_into(mvc *sql, scope *scp, dlist *qname, dlist *columns, symbol 
*val_or_q)
 {
        int inscol = 0;
 
@@ -1257,7 +1257,7 @@
 
                                for (n = values->h, m = collist->h; n && m; n = 
n->next, m = m->next) {
                                        sql_column *c = m->data;
-                                       stmt *ins = insert_value(sql, NULL, c, 
n->data.sym);
+                                       stmt *ins = insert_value(sql, scp, c, 
n->data.sym);
 
                                        if (!ins) {
                                                cleanup_stmts(inserts, len);
@@ -1986,7 +1986,7 @@
        {
                dlist *l = s->data.lval;
 
-               ret = insert_into(sql, l->h->data.lval, l->h->next->data.lval, 
l->h->next->next->data.sym);
+               ret = insert_into(sql, scp, l->h->data.lval, 
l->h->next->data.lval, l->h->next->next->data.sym);
                sql->type = Q_UPDATE;
        }
                break;


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to