Browse Source

Added test and adjusted changelog for #15112

tags/2.0.14
Alexander Makarov 7 years ago
parent
commit
18281c2156
No known key found for this signature in database
GPG Key ID: 3617B79C6A325E4A
  1. 2
      framework/CHANGELOG.md
  2. 6
      tests/framework/db/CommandTest.php

2
framework/CHANGELOG.md

@ -4,6 +4,7 @@ Yii Framework 2 Change Log
2.0.14 under development
------------------------
- Bug #15122: Fixed `yii\db\Command::getRawSql()` to properly replace expressions (hiscaler, samdark)
- Enh #15496: CSRF token is now regenerated on changing identity (samdark, rhertogh)
- Enh #15417: Added `yii\validators\FileValidator::$minFiles` (vladis84)
- Bug #8983: Only truncate the original log file for rotation (matthewyang, developeruz)
@ -130,7 +131,6 @@ Yii Framework 2 Change Log
- Bug #14773: Fixed `yii\widgets\ActiveField::$options` does not support 'class' option in array format (klimov-paul)
- Bug #14902: Fixed PHP notice in `yii\web\MultipartFormDataParser` (olimsaidov)
- Bug #14921: Fixed bug with replacing numeric keys in `yii\helpers\Url::current()` (rob006)
- Bug #15122: Fixed bug with sql error if params has expression in `yii\db\Command::getRawSql()` (hiscaler)
- Enh #4479: Implemented REST filters (klimov-paul)
- Enh #4495: Added closure support in `yii\i18n\Formatter` (developeruz)
- Enh #5786: Allowed to use custom constructors in ActiveRecord-based classes (ElisDN, klimov-paul)

6
tests/framework/db/CommandTest.php

@ -1070,6 +1070,12 @@ SQL;
[':active' => false],
'SELECT * FROM customer WHERE active = FALSE',
],
// https://github.com/yiisoft/yii2/issues/15122
[
'SELECT * FROM customer WHERE id IN (:ids)',
[':ids' => new Expression(implode(', ', [1, 2]))],
'SELECT * FROM customer WHERE id IN (1, 2)',
],
];
}

Loading…
Cancel
Save