mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 22:30:27 +08:00
@ -5,6 +5,7 @@ Yii Framework 2 Change Log
|
||||
-----------------------
|
||||
|
||||
- Bug #8723: Fixed `yii\helpers\VarDumper::export()` unable to export circle referenced objects with `Closure` (klimov-paul)
|
||||
- Bug #9415: Fixed regression in 2.0.6 where on Oracle DB `PDO::ATTR_CASE = PDO::CASE_UPPER` did not work anymore (cebe)
|
||||
- Chg #9369: `Yii::$app->user->can()` now returns `false` instead of erroring in case `authManager` component is not configured (creocoder)
|
||||
- Chg #9411: `DetailView` now automatically sets container tag ID in case it's not specified (samdark)
|
||||
|
||||
|
@ -280,14 +280,14 @@ SQL;
|
||||
]);
|
||||
$constraints = [];
|
||||
foreach ($command->queryAll() as $row) {
|
||||
if ($this->db->slavePdo->getAttribute(\PDO::ATTR_CASE) === \PDO::CASE_LOWER) {
|
||||
$row = array_change_key_case($row, CASE_UPPER);
|
||||
}
|
||||
if ($row['CONSTRAINT_TYPE'] !== 'R') {
|
||||
// this condition is not checked in SQL WHERE because of an Oracle Bug:
|
||||
// see https://github.com/yiisoft/yii2/pull/8844
|
||||
continue;
|
||||
}
|
||||
if ($this->db->slavePdo->getAttribute(\PDO::ATTR_CASE) === \PDO::CASE_LOWER) {
|
||||
$row = array_change_key_case($row, CASE_UPPER);
|
||||
}
|
||||
$name = $row['CONSTRAINT_NAME'];
|
||||
if (!isset($constraints[$name])) {
|
||||
$constraints[$name] = [
|
||||
|
Reference in New Issue
Block a user