From f23e8884a1cbaf3de44db3a55c035efa9d9483b2 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Fri, 19 Apr 2019 12:08:23 +0200 Subject: [PATCH] Fix TDBConnection.ParseViewStructure so it orders the result from IS.COLUMNS by their ordinal/natural position. Closes #617. --- source/dbconnection.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index bc179935..ceefae62 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -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);