Browse Source

Merge pull request #526 from sergon/patch-3

pgsql schema findColumns fix
tags/2.0.0-beta
Carsten Brandt 12 years ago
parent
commit
a37fde5216
  1. 3
      framework/yii/db/pgsql/Schema.php

3
framework/yii/db/pgsql/Schema.php

@ -243,6 +243,9 @@ ORDER BY
SQL;
$columns = $this->db->createCommand($sql)->queryAll();
if (empty($columns)) {
return false;
}
foreach ($columns as $column) {
$column = $this->loadColumnSchema($column);
$table->columns[$column->name] = $column;

Loading…
Cancel
Save