Closed jaylmiller closed 2 years ago
Why is it counter intuitive? And what is the ordinal position anyway in case of columns? And you know the order is intentional, since you've looked at the code. No need to be passive aggressive
This issue should be reopen. Columns have a clear order regardless of dialect.
information_schema.columns.ordinal_position
inforamtion_schema.columns.ordinal_position
or pg_catalog.pg_attribute.attnum
pragma_table_info(table).cid
Reverting part of f6588f8f could solve this problem. However, since there is no criterion for ordering the tables, sorting the tables by name seems necessary.
should be orderBy('ordinal_position')
should be orderBy('a.attnum')
should be orderBy('cid')
Is this intentional? It is a bit counter intuitive to me and makes the introspection feature slightly less useful
would be happy to do a PR if you think this change would make sense.