Explorar o código

* patch to order output of getschemainfo(sttables) for sqlite, patch by Lacak2, mantis #19957

git-svn-id: trunk@18875 -
marco %!s(int64=14) %!d(string=hai) anos
pai
achega
d6ec10d166
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/fcl-db/src/sqldb/sqlite/sqlite3conn.pp

+ 1 - 1
packages/fcl-db/src/sqldb/sqlite/sqlite3conn.pp

@@ -770,7 +770,7 @@ function TSQLite3Connection.GetSchemaInfoSQL(SchemaType: TSchemaType;
   
   
 begin
 begin
   case SchemaType of
   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) + ''')';
     stColumns    : result := 'pragma table_info(''' + (SchemaObjectName) + ''')';
   else
   else
     DatabaseError(SMetadataUnavailable)
     DatabaseError(SMetadataUnavailable)