]> git.nbdom.net Git - nb.git/commitdiff
db.tables no mor temporaries but views
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 27 Feb 2016 18:39:00 +0000 (18:39 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sat, 27 Feb 2016 18:39:00 +0000 (18:39 +0000)
lib/php/db.php

index a85cae4733e7eb3fb6e85a8dda3589f0d8fc9794..9539aa7a18e0bca5cdd7a3b161aceaab0e983316 100644 (file)
@@ -212,7 +212,7 @@ class db extends nb {
       $sql = "SELECT name FROM sqlite_master WHERE type='table' AND name NOT LIKE 'sqlite_%' ORDER BY name";
 
     } elseif ($this->type == 'pgsql') {
-      $sql = "SELECT table_name FROM information_schema.tables WHERE table_type in('BASE TABLE','LOCAL TEMPORARY') AND table_schema NOT IN ('pg_catalog', 'information_schema')";
+      $sql = "SELECT table_name FROM information_schema.tables WHERE table_type in('BASE TABLE','VIEW') AND table_schema NOT IN ('pg_catalog', 'information_schema')";
 
     } elseif ($this->type == 'mysql') {
       $sql = "SHOW TABLES";