Commit b36b9bfd by Fourteenmeister

fix error

fix error when if fields whose names are reserved word
parent 3e450971
......@@ -219,6 +219,7 @@ class QueryBuilder extends \yii\db\QueryBuilder
->from('sys.columns')
->where("object_id = OBJECT_ID('dbo.{$table}')")
->column();
array_walk($columns, create_function('&$str', '$str = "[$str]";'));
return $columns;
}
......
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