Commit b733a189 by wenbin1989 Committed by Qiang Xue

fix oci bugs: \yii\db\oci\Schema::findColumns($table) return true when table…

fix oci bugs: \yii\db\oci\Schema::findColumns($table) return true when table doesn't exist When table doesn't exist, query in method `findColumns` return empty array instead of throw a exception.
parent 9869e67d
......@@ -141,6 +141,10 @@ EOD;
return false;
}
if (empty($columns)) {
return false;
}
foreach ($columns as $column) {
$c = $this->createColumn($column);
$table->columns[$c->name] = $c;
......
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