Ticket #586: Pgsql-list_tables.patch
| File Pgsql-list_tables.patch, 0.6 kB (added by fleximus, 7 months ago) |
|---|
-
kohana/system/libraries/drivers/Database/Pgsql.
old new 224 224 225 225 public function list_tables() 226 226 { 227 $sql = 'SELECT table_ name FROM information_schema.tables WHERE table_schema = \'public\'';227 $sql = 'SELECT table_schema || \'.\' || table_name FROM information_schema.tables WHERE table_schema NOT IN (\'pg_catalog\', \'information_schema\')'; 228 228 $result = $this->query($sql)->result(FALSE, PGSQL_ASSOC); 229 229 230 230 $retval = array(); … … 649 649 { 650 650 return $this; 651 651 } 652 } 653 No newline at end of file 652 }
