Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Commit a881114

Browse files
committed
chore: order by catalog and schema name
1 parent c588ed3 commit a881114

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

google/cloud/sqlalchemy_spanner/sqlalchemy_spanner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,8 @@ def get_multi_pk_constraint(
13141314
AND tc.TABLE_NAME = t.TABLE_NAME
13151315
WHERE {table_filter_query} {table_type_query}
13161316
{schema_filter_query} tc.CONSTRAINT_TYPE = "PRIMARY KEY"
1317-
ORDER BY tc.table_name ASC, kcu.ordinal_position ASC
1317+
ORDER BY tc.table_catalog ASC, tc.table_schema ASC,
1318+
tc.table_name ASC, kcu.ordinal_position ASC
13181319
""".format(
13191320
table_filter_query=table_filter_query,
13201321
table_type_query=table_type_query,

0 commit comments

Comments
 (0)