Skip to content

Commit

Permalink
Fix order of index columns
Browse files Browse the repository at this point in the history
  • Loading branch information
naoina committed Feb 17, 2021
1 parent c3cffef commit 910568c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spanner/spanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ SELECT
SELECT COLUMN_NAME
FROM INFORMATION_SCHEMA.INDEX_COLUMNS
WHERE TABLE_NAME = c.TABLE_NAME AND INDEX_NAME = c.INDEX_NAME AND INDEX_TYPE = c.INDEX_TYPE AND COLUMN_ORDERING IS NOT NULL
ORDER BY COLUMN_ORDERING ASC
ORDER BY ORDINAL_POSITION ASC
), ", ") AS columns,
ARRAY_TO_STRING(ARRAY(
SELECT COLUMN_NAME
Expand Down

0 comments on commit 910568c

Please # to comment.