From d67416ab8be16f1cf263adc9865621e1478d98ce Mon Sep 17 00:00:00 2001 From: resurtm Date: Thu, 23 May 2013 23:41:57 +0600 Subject: [PATCH] MSSQL: select what is really needed from information_schema.columns, not just everything as it was before. --- framework/yii/db/mssql/Schema.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/yii/db/mssql/Schema.php b/framework/yii/db/mssql/Schema.php index c52dfc3..add6185 100644 --- a/framework/yii/db/mssql/Schema.php +++ b/framework/yii/db/mssql/Schema.php @@ -163,7 +163,7 @@ class Schema extends \yii\db\Schema $column->isPrimaryKey = null; // primary key will be determined in findColumns() method $column->autoIncrement = $info['IsIdentity'] == 1; $column->unsigned = stripos($column->dbType, 'unsigned') !== false; - $column->comment = $info['Comment'] === null ? '' : $column['Comment']; + $column->comment = $info['Comment'] === null ? '' : $info['Comment']; $column->type = self::TYPE_STRING; if (preg_match('/^(\w+)(?:\(([^\)]+)\))?/', $column->dbType, $matches)) { @@ -221,7 +221,7 @@ class Schema extends \yii\db\Schema $sql = <<