Skip to content
Permalink
Browse files

Fix TDBConnection.ParseViewStructure so it orders the result from IS.…

…COLUMNS by their ordinal/natural position. Closes #617.
  • Loading branch information...
ansgarbecker committed Apr 19, 2019
1 parent 4608390 commit f23e8884a1cbaf3de44db3a55c035efa9d9483b2
Showing with 2 additions and 1 deletion.
  1. +2 −1 source/dbconnection.pas
@@ -5362,7 +5362,8 @@ procedure TDBConnection.ParseViewStructure(CreateCode: String; DBObj: TDBObject;
'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);

0 comments on commit f23e888

Please sign in to comment.
You can’t perform that action at this time.