Fix #10020: Fixed quoting of column names with dots in MSSQL

This commit is contained in:
Alexander Kartavenko
2019-07-17 16:46:31 +03:00
committed by Alexander Makarov
parent 8b2f34d72c
commit 259c496e2e
3 changed files with 17 additions and 1 deletions

View File

@ -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

View File

@ -739,4 +739,16 @@ SQL;
return $result[$returnType];
}
/**
* {@inheritdoc}
*/
public function quoteColumnName($name)
{
if (preg_match('/^\[.*\]$/', $name)) {
return $name;
}
return parent::quoteColumnName($name);
}
}