From: Nicolas Boisselier Date: Sat, 27 Feb 2016 18:39:00 +0000 (+0000) Subject: db.tables no mor temporaries but views X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=4b89a027445461a800a12ab772f0f6d50ea40c0c;p=nb.git db.tables no mor temporaries but views --- diff --git a/lib/php/db.php b/lib/php/db.php index a85cae47..9539aa7a 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -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";