From d6ec10d1669e5faddfa8bb18439442817a264968 Mon Sep 17 00:00:00 2001 From: marco Date: Sun, 28 Aug 2011 14:56:46 +0000 Subject: [PATCH] * patch to order output of getschemainfo(sttables) for sqlite, patch by Lacak2, mantis #19957 git-svn-id: trunk@18875 - --- packages/fcl-db/src/sqldb/sqlite/sqlite3conn.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fcl-db/src/sqldb/sqlite/sqlite3conn.pp b/packages/fcl-db/src/sqldb/sqlite/sqlite3conn.pp index 525ebf690a..9b4c6737af 100644 --- a/packages/fcl-db/src/sqldb/sqlite/sqlite3conn.pp +++ b/packages/fcl-db/src/sqldb/sqlite/sqlite3conn.pp @@ -770,7 +770,7 @@ function TSQLite3Connection.GetSchemaInfoSQL(SchemaType: TSchemaType; begin case SchemaType of - stTables : result := 'select name as table_name from sqlite_master where type = ''table'''; + stTables : result := 'select name as table_name from sqlite_master where type = ''table'' order by 1'; stColumns : result := 'pragma table_info(''' + (SchemaObjectName) + ''')'; else DatabaseError(SMetadataUnavailable)