Skip to content

Commit 2ac9816

Browse files
authored
Fixing Column Order Attributes
1. Ignore None order as SQLAlchemy only processes ASC, DESC 2. SQLAlchemy requires order in lowercase (asc, desc)
1 parent 47438b1 commit 2ac9816

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/cloud/sqlalchemy_spanner/sqlalchemy_spanner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@ def get_multi_indexes(
10111011
"column_names": row[3],
10121012
"unique": row[4],
10131013
"column_sorting": {
1014-
col: order for col, order in zip(row[3], row[5])
1014+
col: order.lower() for col, order in zip(row[3], row[5]) if order is not None
10151015
},
10161016
}
10171017
row[0] = row[0] or None

0 commit comments

Comments
 (0)