Skip to content

Commit b9b2861

Browse files
committed
Other schema
1 parent 680d9c9 commit b9b2861

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/Pgsql/PgsqlDriver.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,17 @@ public function getTableColumns($table, $typeOnly = true)
228228

229229
$result = [];
230230
$tableSub = $this->replacePrefix($table);
231+
232+
$fullname = explode('.', $tableSub);
233+
if (is_array($fullname) && count($fullname) == 2)
234+
{
235+
$tableSub = $fullname[1];
236+
$defaultSchema = $fullname[0];
237+
}
238+
else
239+
{
231240
$defaultSchema = $this->getDefaultSchema();
241+
}
232242

233243
$this->setQuery('
234244
SELECT a.attname AS "column_name",

0 commit comments

Comments
 (0)