mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 22:00:16 +08:00
Sort column names in data grid by their ordinal position. Closes #854
This commit is contained in:
@ -4541,7 +4541,8 @@ begin
|
||||
else
|
||||
SchemaClause := GetSQLSpecifity(spISTableSchemaCol)+'='+EscapeString(Table.Database);
|
||||
ColQuery := GetResults('SELECT * FROM '+QuoteIdent('information_schema')+'.'+QuoteIdent(InformationSchemaObjects[TableIdx])+
|
||||
' WHERE '+SchemaClause+' AND TABLE_NAME='+EscapeString(Table.Name));
|
||||
' WHERE '+SchemaClause+' AND TABLE_NAME='+EscapeString(Table.Name)+
|
||||
' ORDER BY ORDINAL_POSITION');
|
||||
while not ColQuery.Eof do begin
|
||||
Col := TTableColumn.Create(Self);
|
||||
Result.Add(Col);
|
||||
|
Reference in New Issue
Block a user