Changeset: f6d11cb5e2d3 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f6d11cb5e2d3
Modified Files:
        sql/storage/store.c
Branch: Feb2013
Log Message:

Only mark bats as key when the index refers to a primary key constraint.
Test update_delete_set_null_crash in sql/test/Update_Delete_action
aborts otherwise when run with -d10 but without --forcemito
(i.e. outside of Mtest.py).


diffs (12 lines):

diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -1801,7 +1801,7 @@ sql_trans_copy_idx( sql_trans *tr, sql_t
        ni->type = i->type;
        ni->key = NULL;
 
-       if (list_length(i->columns) == 1)
+       if (i->type == hash_idx && list_length(i->columns) == 1)
                unique = 1;
        for (n = i->columns->h, nr = 0; n; n = n->next, nr++) {
                sql_kc *okc = n->data, *ic;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to