Commit 6f307161 authored by Bill Schaller's avatar Bill Schaller Committed by Steve Müller

fix incorrect ordering of columns in clustered indexes on sql server when hydrated from schema info

parent 7c467c34
......@@ -561,7 +561,7 @@ class SQLServerPlatform extends AbstractPlatform
JOIN sys.index_columns AS idxcol ON idx.object_id = idxcol.object_id AND idx.index_id = idxcol.index_id
JOIN sys.columns AS col ON idxcol.object_id = col.object_id AND idxcol.column_id = col.column_id
WHERE tbl.name = '$table'
ORDER BY idx.index_id ASC, idxcol.index_column_id ASC";
ORDER BY idx.index_id ASC, idxcol.key_ordinal ASC";
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment