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
4b930e1d
Commit
4b930e1d
authored
Feb 24, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2526 from skotos/master
nulls in batchInsert. Patch available.
parents
3dead338
6526f0cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
QueryBuilder.php
framework/db/QueryBuilder.php
+2
-1
No files found.
framework/CHANGELOG.md
View file @
4b930e1d
...
...
@@ -122,6 +122,7 @@ Yii Framework 2 Change Log
-
Enh #2490:
`yii\db\Query::count()`
and other query scalar methods now properly handle queries with GROUP BY clause (qiangxue)
-
Enh #2491: Added support for using the same base class name of search model and data model in Gii (qiangxue)
-
Enh #2499: Added ability to downgrade migrations by their absolute apply time (resurtm, gorcer)
-
Enh #2526: Allow for null values in batchInsert (skotos)
-
Enh: Added support for using arrays as option values for console commands (qiangxue)
-
Enh: Added
`favicon.ico`
and
`robots.txt`
to default application templates (samdark)
-
Enh: Added
`Widget::autoIdPrefix`
to support prefixing automatically generated widget IDs (qiangxue)
...
...
framework/db/QueryBuilder.php
View file @
4b930e1d
...
...
@@ -177,7 +177,8 @@ class QueryBuilder extends \yii\base\Object
if
(
!
is_array
(
$value
)
&&
isset
(
$columnSchemas
[
$columns
[
$i
]]))
{
$value
=
$columnSchemas
[
$columns
[
$i
]]
->
typecast
(
$value
);
}
$vs
[]
=
is_string
(
$value
)
?
$this
->
db
->
quoteValue
(
$value
)
:
$value
;
$vs
[]
=
is_string
(
$value
)
?
$this
->
db
->
quoteValue
(
$value
)
:
(
is_null
(
$value
)
?
'null'
:
$value
);
}
$values
[]
=
'('
.
implode
(
', '
,
$vs
)
.
')'
;
}
...
...
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