Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
7b20bdee
Commit
7b20bdee
authored
Nov 27, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #6279: `yii\db\Schema::getLastInsertID()` was passing wrong default schema name to PDO
parent
e41d670a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
Schema.php
framework/db/Schema.php
+1
-1
No files found.
framework/CHANGELOG.md
View file @
7b20bdee
...
@@ -39,6 +39,7 @@ Yii Framework 2 Change Log
...
@@ -39,6 +39,7 @@ Yii Framework 2 Change Log
-
Bug #6150:
`yii\bootstrap\Tabs`
dropdown IDs were generated incorrectly (samdark)
-
Bug #6150:
`yii\bootstrap\Tabs`
dropdown IDs were generated incorrectly (samdark)
-
Bug #6266: Clicking on reset button does not hide error summary when using
`ActiveForm`
(InteLigent, qiangxue)
-
Bug #6266: Clicking on reset button does not hide error summary when using
`ActiveForm`
(InteLigent, qiangxue)
-
Bug #6271: Query caching returns the same data when running the same SQL with different fetch modes (grachov)
-
Bug #6271: Query caching returns the same data when running the same SQL with different fetch modes (grachov)
-
Bug #6279:
`yii\db\Schema::getLastInsertID()`
was passing wrong default schema name to PDO (samdark)
-
Bug: Gii console command help information does not contain global options (qiangxue)
-
Bug: Gii console command help information does not contain global options (qiangxue)
-
Bug:
`yii\web\UrlRule`
was unable to create URLs for rules containing unicode characters (samdark)
-
Bug:
`yii\web\UrlRule`
was unable to create URLs for rules containing unicode characters (samdark)
-
Bug:
`yii\web\AssetManager`
should not publish disabled asset bundles (qiangxue)
-
Bug:
`yii\web\AssetManager`
should not publish disabled asset bundles (qiangxue)
...
...
framework/db/Schema.php
View file @
7b20bdee
...
@@ -312,7 +312,7 @@ abstract class Schema extends Object
...
@@ -312,7 +312,7 @@ abstract class Schema extends Object
public
function
getLastInsertID
(
$sequenceName
=
''
)
public
function
getLastInsertID
(
$sequenceName
=
''
)
{
{
if
(
$this
->
db
->
isActive
)
{
if
(
$this
->
db
->
isActive
)
{
return
$this
->
db
->
pdo
->
lastInsertId
(
$sequenceName
);
return
$this
->
db
->
pdo
->
lastInsertId
(
$sequenceName
===
''
?
null
:
$sequenceName
);
}
else
{
}
else
{
throw
new
InvalidCallException
(
'DB Connection is not active.'
);
throw
new
InvalidCallException
(
'DB Connection is not active.'
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment