Changeset: 39db23df280a for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/39db23df280a Modified Files: sql/storage/store_dependency.c Branch: sch_rename_more_permissive Log Message:
Use the same pointer if content is the same diffs (24 lines): diff --git a/sql/storage/store_dependency.c b/sql/storage/store_dependency.c --- a/sql/storage/store_dependency.c +++ b/sql/storage/store_dependency.c @@ -138,6 +138,10 @@ sql_trans_get_dependents(sql_trans* tr, bool first = true; for (sql_base *b = oi_next(&oi); b; b = oi_next(&oi)) { sqlid* local_id = MNEW(sqlid); + if (local_id == NULL) { + list_destroy(dep_list); + return NULL; + } *local_id = b->id; if (list_append(schema_tables, local_id) == NULL) { list_destroy(dep_list); @@ -153,7 +157,8 @@ sql_trans_get_dependents(sql_trans* tr, } rs = table_api.rids_select(tr, dep_id, &low_id, - high_id == -1 ? &low_id : &high_id, + high_id == -1 ? &low_id : + low_id == high_id ? &low_id : &high_id, NULL); if (rs == NULL) { list_destroy(dep_list); _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org