From d0296933d9e7027bb99205f0e1f3acf6240d2bf2 Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 16 Jan 2015 13:40:31 +0000 Subject: [PATCH] fix sql error --- application/module/Westdc/Visual/DataTableControl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);