|
@@ -17,7 +17,7 @@
|
|
|
|
|
|
The Initial Developer of the Original Code is
|
|
The Initial Developer of the Original Code is
|
|
Mark J Crane <[email protected]>
|
|
Mark J Crane <[email protected]>
|
|
- Portions created by the Initial Developer are Copyright (C) 2008-2019
|
|
|
|
|
|
+ Portions created by the Initial Developer are Copyright (C) 2008-2021
|
|
the Initial Developer. All Rights Reserved.
|
|
the Initial Developer. All Rights Reserved.
|
|
|
|
|
|
Contributor(s):
|
|
Contributor(s):
|
|
@@ -184,7 +184,7 @@
|
|
echo " <option value=''></option>\n";
|
|
echo " <option value=''></option>\n";
|
|
switch ($db_type) {
|
|
switch ($db_type) {
|
|
case 'sqlite': $sql = "select name from sqlite_master where type='table' order by name;"; break;
|
|
case 'sqlite': $sql = "select name from sqlite_master where type='table' order by name;"; break;
|
|
- case 'pgsql': $sql = "select table_name as name from information_schema.tables where table_schema='public' and table_type='BASE TABLE' order by table_name"; break;
|
|
|
|
|
|
+ case 'pgsql': $sql = "select table_name as name from information_schema.tables where table_schema='public' and (table_type='BASE TABLE' or table_type='VIEW') order by table_name"; break;
|
|
case 'mysql': $sql = "show tables"; break;
|
|
case 'mysql': $sql = "show tables"; break;
|
|
}
|
|
}
|
|
$database = new database;
|
|
$database = new database;
|