fix sql error

This commit is contained in:
wlx 2015-01-16 13:40:31 +00:00
parent 6bd999c839
commit d0296933d9
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class DataTableControl extends Database{
public function readTables() 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); $rs = $this->db->query($sql);
$row = $rs->fetchAll(\PDO::FETCH_COLUMN); $row = $rs->fetchAll(\PDO::FETCH_COLUMN);