mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 21:41:19 +08:00
Fix #10020: Fixed quoting of column names with dots in MSSQL
This commit is contained in:
committed by
Alexander Makarov
parent
8b2f34d72c
commit
259c496e2e
@ -4,7 +4,7 @@ Yii Framework 2 Change Log
|
||||
2.0.24 under development
|
||||
------------------------
|
||||
|
||||
- no changes in this release.
|
||||
- Bug #10020: Fixed quoting of column names with dots in MSSQL (alexkart)
|
||||
|
||||
|
||||
2.0.23 July 16, 2019
|
||||
|
||||
@ -739,4 +739,16 @@ SQL;
|
||||
|
||||
return $result[$returnType];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function quoteColumnName($name)
|
||||
{
|
||||
if (preg_match('/^\[.*\]$/', $name)) {
|
||||
return $name;
|
||||
}
|
||||
|
||||
return parent::quoteColumnName($name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user