diff --git a/application/module/Westdc/Visual/DataTableControl.php b/application/module/Westdc/Visual/DataTableControl.php index cd6d3b58..cb105990 100644 --- a/application/module/Westdc/Visual/DataTableControl.php +++ b/application/module/Westdc/Visual/DataTableControl.php @@ -18,7 +18,7 @@ class DataTableControl extends Database{ public function readTables() { - $sql = "SELECT schemaname||'.'||tablename as tablename FROM pg_tables WHERE owner='gis' ORDER BY tablename "; + $sql = "SELECT schemaname||'.'||tablename as tablename FROM pg_tables WHERE tableowner='gis' ORDER BY tablename "; $rs = $this->db->query($sql); $row = $rs->fetchAll(\PDO::FETCH_COLUMN);