From 663fe63911cf79d69747372f80ef4be5aeecd5cb Mon Sep 17 00:00:00 2001 From: gsd Date: Tue, 11 Jun 2013 15:38:06 +0600 Subject: [PATCH] Update Schema.php --- framework/yii/db/pgsql/Schema.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/yii/db/pgsql/Schema.php b/framework/yii/db/pgsql/Schema.php index b1c09d1..8acb7bd 100644 --- a/framework/yii/db/pgsql/Schema.php +++ b/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;