Changeset: 8addc0e19e7a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8addc0e19e7a
Modified Files:
sql/storage/bat/bat_utils.c
Branch: Jul2015
Log Message:
fix crash with asserts enabled, ie table maybe removed before, ie nt could be
NULL.
diffs (12 lines):
diff --git a/sql/storage/bat/bat_utils.c b/sql/storage/bat/bat_utils.c
--- a/sql/storage/bat/bat_utils.c
+++ b/sql/storage/bat/bat_utils.c
@@ -219,7 +219,7 @@ tr_find_table( sql_trans *tr, sql_table
nt = find_sql_table_id(s, t->base.id);
else
nt = find_sql_table(s, t->base.name);
- assert(nt->base.id == t->base.id);
+ assert(!nt || nt->base.id == t->base.id);
tr = tr->parent;
}
return nt;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list