Update of /cvsroot/monetdb/sql/src/storage
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv7544/src/storage
Modified Files:
Tag: SQL_2-24
store.mx
Log Message:
reset pkey if its droped
U store.mx
Index: store.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/storage/store.mx,v
retrieving revision 1.11.2.3
retrieving revision 1.11.2.4
diff -u -d -r1.11.2.3 -r1.11.2.4
--- store.mx 4 Jun 2008 20:19:20 -0000 1.11.2.3
+++ store.mx 5 Jul 2008 18:37:09 -0000 1.11.2.4
@@ -2169,6 +2169,8 @@
return LOG_OK;
/* remove key from schema */
list_remove_data(k->t->s->keys, k);
+ if (k->t->pkey == (sql_ukey*)k)
+ k->t->pkey = NULL;
if (k->type == fkey) {
fk = (sql_fkey *) k;
@@ -2856,6 +2858,8 @@
}
/* remove key from schema */
list_remove_data(k->t->s->keys, k);
+ if (k->t->pkey == (sql_ukey*)k)
+ k->t->pkey = NULL;
if (k->type == fkey) {
sql_fkey *fk = (sql_fkey *) k;
-------------------------------------------------------------------------
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