Update of /cvsroot/monetdb/sql/src/storage
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv2828
Modified Files:
Tag: SQL_2-20
store.mx
Log Message:
When a temp table has the commit action different than DROP the cache should be
refreshed...
Here we have the different values for the commit action
opt_on_commit: /* only for temporary tables */
/* empty */ { $$ = CA_DELETE; }
| ON COMMIT sqlDELETE ROWS { $$ = CA_DELETE; }
| ON COMMIT PRESERVE ROWS { $$ = CA_PRESERVE; }
| ON COMMIT DROP { $$ = CA_DROP; }
;
Index: store.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/storage/store.mx,v
retrieving revision 1.1.4.1
retrieving revision 1.1.4.2
diff -u -d -r1.1.4.1 -r1.1.4.2
--- store.mx 31 Oct 2007 11:59:17 -0000 1.1.4.1
+++ store.mx 18 Dec 2007 12:24:35 -0000 1.1.4.2
@@ -3328,7 +3328,7 @@
sys_drop_table(tr, t, drop_action);
t->base.wtime = s->base.wtime = tr->wtime = tr->stime;
- if (isGlobalTable(t))
+ if (isGlobalTable(t) || (t->commit_action != CA_DROP))
tr->schema_updates ++;
cs_del(&s->tables, n, t->base.flag);
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins