fix sql error
This commit is contained in:
parent
6bd999c839
commit
d0296933d9
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue