Skip to content

Commit 1ace064

Browse files
committed
Pre-release adjustments
1 parent 6b1750d commit 1ace064

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: framework/CHANGELOG.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ Yii Framework 2 Change Log
77
- Enh #18499: When using `yii\db\Query::all()` and `yii\db\Query::$indexBy`, the `yii\db\Query::$indexBy` is auto inserted into `yii\db\Query::$select` - the same as in `yii\db\Query::column()` (OndrejVasicek, samdark, bizley)
88
- Enh #18483: Add `yii\log\Logger::$dbEventNames` that allows specifying event names used to get statistical results (profiling) of DB queries (atiline)
99
- Enh #18455: Add ability to use separate attributes for data model and filter model of `yii\grid\GridView` in `yii\grid\DataColumn` (PowerGamer1)
10-
- Enh #18447: Do not use `getLastInsertID` to get PK from insert query to lower collision probability for concurrent inserts (darkdef)
10+
- Enh #18447: Do not use `getLastInsertID()` to get PK from insert query to lower collision probability for concurrent inserts (darkdef)
1111
- Bug #18448: Fix issues in queries and tests for older MSSQL versions (darkdef)
1212
- Enh #18460: `compareValue` in `CompareValidator` can now take a closure returning a value (mmonem)
1313
- Bug #18464: Fix bug with processing fallback messages when translation language is set to `null` (bizley)
1414
- Enh #18457: Add `EVENT_RESET` and `EVENT_FINISH` events to `yii\db\BatchQueryResult` (brandonkelly)
1515
- Bug #18472: Fix initializing `db` component configuration in `yii\data\ActiveDataProvider` (bizley)
16-
- Bug #18479: Fix invalid argument type for `preg_split` in `\yii\console\Controller` (gazooz)
16+
- Bug #18479: Fix invalid argument type for `preg_split()` in `\yii\console\Controller` (gazooz)
1717
- Bug #18477: Fix detecting availability of Xdebug's stack trace in `yii\base\ErrorException` (bizley)
1818
- Bug #18480: Transactions are not committed using the dblib driver (bbrunekreeft)
1919
- Enh #18493: Faster request parsing for REST UrlRule with prefix handling (bizley)
2020
- Enh #18487: Allow creating URLs for non-GET-verb rules (bizley)
2121
- Bug #8750: Fix MySQL support when running in `ANSI`/`ANSI_QUOTES` modes (brandonkelly)
22-
- Bug #18505: Fixed `yii\helpers\ArrayHelper::getValue()` for ArrayAccess objects with explicitly defined properties (samdark)
22+
- Bug #18505: Fix `yii\helpers\ArrayHelper::getValue()` for ArrayAccess objects with explicitly defined properties (samdark)
2323
- Bug #9718: Fix user staying authorized despite authKey change (kidol, Charlie Jack, Kunal Mhaske, samdark)
2424
- Bug #18508: Fix Postgres SQL query for load table indexes with correct column order (insolita)
2525
- Enh #18518: Add support for ngrok’s `X-Original-Host` header (brandonkelly)

Diff for: framework/db/mssql/DBLibPDO.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
* It provides workarounds for improperly implemented functionalities of the DBLIB drivers.
1313
*
1414
* @author Bert Brunekreeft <[email protected]>
15-
* @since 2.0
15+
* @since 2.0.41
1616
*/
1717
class DBLibPDO extends \PDO
1818
{
1919
/**
2020
* Returns value of the last inserted ID.
21-
* @param string|null $sequence the sequence name. Defaults to null.
21+
* @param string|null $name the sequence name. Defaults to null.
2222
* @return int last inserted ID value.
2323
*/
24-
public function lastInsertId($sequence = null)
24+
public function lastInsertId($name = null)
2525
{
2626
return $this->query('SELECT CAST(COALESCE(SCOPE_IDENTITY(), @@IDENTITY) AS bigint)')->fetchColumn();
2727
}

0 commit comments

Comments
 (0)