Browse Source

Revert "Fixes #3744: `yii\db\Connection` now skips `bindValues` if there are no parameters to bind"

This reverts commit ea10ba4938.
tags/2.0.0-rc
Alexander Makarov 10 years ago
parent
commit
de8ba90019
  1. 1
      framework/CHANGELOG.md
  2. 2
      framework/db/Connection.php

1
framework/CHANGELOG.md

@ -76,7 +76,6 @@ Yii Framework 2 Change Log
- Enh #3631: Added property `currencyCode` to `yii\i18n\Formatter` (leandrogehlen)
- Enh #3636: Hide menu container tag with empty items in `yii\widgets\Menu` (arturf)
- Enh #3643: Improved Mime-Type detection by using the `mime.types` file from apache http project to dected mime types by file extension (cebe, pavel-voronin, trejder)
- Enh #3744: `yii\db\Connection` now skips `bindValues` if there are no parameters to bind (samdark, novalicious)
- Enh: Added support for using sub-queries when building a DB query with `IN` condition (qiangxue)
- Enh: Supported adding a new response formatter without the need to reconfigure existing formatters (qiangxue)
- Enh: Added `yii\web\UrlManager::addRules()` to simplify adding new URL rules (qiangxue)

2
framework/db/Connection.php

@ -396,7 +396,7 @@ class Connection extends Component
'sql' => $sql,
]);
return $params === [] ? $command : $command->bindValues($params);
return $command->bindValues($params);
}
/**

Loading…
Cancel
Save