Changeset: 1ed641208c99 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/1ed641208c99
Modified Files:
sql/storage/store.c
Branch: Aug2024
Log Message:
When initializing the internal data structures, sub-sort on column number
instead of id.
Semantically, we should sort on column number, but in practice, these
orderings should always be the same. However, I have seen one database
in which this is not the case.
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
@@ -1376,7 +1376,7 @@ load_trans(sql_trans* tr)
NULL, NULL,
find_sql_column(systables, "schema_id"), /* order also
on schema_id */
find_sql_column(syscols, "table_id"),
- find_sql_column(syscols, "id"), NULL);
+ find_sql_column(syscols, "number"), NULL);
res_table *rt_idx = store->table_api.table_orderby(tr, sysidx,
find_sql_column(sysidx, "table_id"),
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]