Commit a37fde52 by Carsten Brandt

Merge pull request #526 from sergon/patch-3

pgsql schema findColumns fix
parents 2a3f088d 663fe639
...@@ -243,6 +243,9 @@ ORDER BY ...@@ -243,6 +243,9 @@ ORDER BY
SQL; SQL;
$columns = $this->db->createCommand($sql)->queryAll(); $columns = $this->db->createCommand($sql)->queryAll();
if (empty($columns)) {
return false;
}
foreach ($columns as $column) { foreach ($columns as $column) {
$column = $this->loadColumnSchema($column); $column = $this->loadColumnSchema($column);
$table->columns[$column->name] = $column; $table->columns[$column->name] = $column;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment