Order db meta information alphabetically

This commit is contained in:
Timothy Warren 2012-04-06 16:17:07 -04:00
parent ad57c69574
commit 7c25981fcb
3 changed files with 8 additions and 3 deletions

View File

@ -135,6 +135,7 @@ class firebird extends DB_PDO {
SELECT "RDB\$RELATION_NAME" FROM "RDB\$RELATIONS"
WHERE "RDB\$RELATION_NAME" NOT LIKE 'RDB$%'
AND "RDB\$RELATION_NAME" NOT LIKE 'MON$%'
ORDER BY "RDB\$RELATION_NAME" ASC
SQL;
$this->statement = $this->query($sql);

View File

@ -61,7 +61,7 @@ class pgSQL extends DB_PDO {
$sql = <<<SQL
SELECT "datname" FROM "pg_database"
WHERE "datname" NOT IN ('template0','template1')
ORDER BY 1
ORDER BY "datname" ASC
SQL;
$res = $this->query($sql);
@ -82,6 +82,7 @@ SQL;
SELECT "tablename" FROM "pg_tables"
WHERE "tablename" NOT LIKE 'pg_%'
AND "tablename" NOT LIKE 'sql_%'
ORDER BY "tablename" ASC
SQL;
$res = $this->query($sql);
@ -155,6 +156,7 @@ SQL;
WHERE "schemaname" NOT IN
('pg_catalog', 'information_schema')
AND "viewname" !~ '^pg_'
ORDER BY "viewname" ASC
SQL;
$res = $this->query($sql);
@ -175,7 +177,8 @@ SQL;
$sql = <<<SQL
SELECT "c"."relname"
FROM "pg_class" "c"
WHERE "c"."relkind" = 'S';
WHERE "c"."relkind" = 'S'
ORDER BY "relname" ASC
SQL;
$res = $this->query($sql);

View File

@ -64,9 +64,10 @@ class SQLite extends DB_PDO {
{
$tables = array();
$sql = <<<SQL
SELECT "name", "sql"
SELECT "name"
FROM "sqlite_master"
WHERE "type"='table'
ORDER BY "name" DESC
SQL;
$res = $this->query($sql);