We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7257fe8 commit 250e7f8Copy full SHA for 250e7f8
src/db/connector/Pgsql.php
@@ -135,9 +135,9 @@ public function getFields(string $tableName): array
135
*
136
* @return array
137
*/
138
- public function getTables(string $dbName = ''): array
+ public function getTables(string $dbName = 'public'): array
139
{
140
- $sql = "SELECT tablename FROM pg_tables WHERE schemaname = 'public' ORDER BY tablename";
+ $sql = "SELECT tablename FROM pg_tables WHERE schemaname = '$dbName' ORDER BY tablename";
141
$pdo = $this->getPDOStatement($sql);
142
$result = $pdo->fetchAll(PDO::FETCH_ASSOC);
143
0 commit comments