Fix TDBConnection.ParseViewStructure so it orders the result from IS.COLUMNS by their ordinal/natural position. Closes #617.

This commit is contained in:
Ansgar Becker
2019-04-19 12:08:23 +02:00
parent 4608390b96
commit f23e8884a1

View File

@ -5362,7 +5362,8 @@ begin
'FROM INFORMATION_SCHEMA.COLUMNS '+
'WHERE '+
' TABLE_NAME='+EscapeString(DBObj.Name)+' '+
SchemaClause
SchemaClause+
' ORDER BY ORDINAL_POSITION'
);
while not Results.Eof do begin
Col := TTableColumn.Create(Self);