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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
5bdf36d9
Commit
5bdf36d9
authored
Oct 26, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #5780: `QueryBuilder::batchInsert()` may cause "undefined index" error
parent
2a6c0b77
Hide 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
QueryBuilder.php
framework/db/QueryBuilder.php
+1
-1
No files found.
framework/CHANGELOG.md
View file @
5bdf36d9
...
...
@@ -14,6 +14,7 @@ Yii Framework 2 Change Log
-
Bug #5682: The
`asset`
command would incorrectly combine CSS files when
`UrlManager::linkAssets`
is true (dmvslv)
-
Bug #5702: Parenthesis should be automatically added to
`Validator::whenClient`
to avoid js error (mdmunir, qiangxue)
-
Bug #5745: Gii and debug modules may cause 404 exception when the route contains dashes (qiangxue)
-
Bug #5780:
`QueryBuilder::batchInsert()`
may cause "undefined index" error (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)
-
Enh #5223: Query builder now supports selecting sub-queries as columns (qiangxue)
...
...
framework/db/QueryBuilder.php
View file @
5bdf36d9
...
...
@@ -189,7 +189,7 @@ class QueryBuilder extends \yii\base\Object
foreach
(
$rows
as
$row
)
{
$vs
=
[];
foreach
(
$row
as
$i
=>
$value
)
{
if
(
!
is_array
(
$value
)
&&
isset
(
$columnSchemas
[
$columns
[
$i
]]))
{
if
(
!
is_array
(
$value
)
&&
isset
(
$column
s
[
$i
])
&&
isset
(
$column
Schemas
[
$columns
[
$i
]]))
{
$value
=
$columnSchemas
[
$columns
[
$i
]]
->
dbTypecast
(
$value
);
}
if
(
is_string
(
$value
))
{
...
...
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