]> granicus.if.org Git - php/commitdiff
Added order by clause in fbsql_list_tables().
authorFrank M. Kromann <fmk@php.net>
Wed, 6 Feb 2002 19:41:00 +0000 (19:41 +0000)
committerFrank M. Kromann <fmk@php.net>
Wed, 6 Feb 2002 19:41:00 +0000 (19:41 +0000)
Table names will now be sorted.

ext/fbsql/php_fbsql.c

index 03557034e7bb9aadb66a08e9f67eb3139ee5d120..75c8d11ce8baf49c0687690a8ad6be6a147eb29b 100644 (file)
@@ -1994,7 +1994,7 @@ PHP_FUNCTION(fbsql_list_dbs)
    Retreive a list of all tables from the specifoied database */
 PHP_FUNCTION(fbsql_list_tables)
 {
-       char* sql = "select t0.\"table_name\"from information_schema.tables t0, information_schema.SCHEMATA t1 where t0.schema_pk = t1.schema_pk and t1.\"schema_name\" = current_schema;";
+       char* sql = "select t0.\"table_name\"from information_schema.tables t0, information_schema.SCHEMATA t1 where t0.schema_pk = t1.schema_pk and t1.\"schema_name\" = current_schema order by \"table_name\";";
        PHPFBLink* phpLink = NULL;
        zval    **fbsql_link_index = NULL, **database_name;
        int id;