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
5b3fa9f5
Commit
5b3fa9f5
authored
Jan 21, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #2091: `QueryBuilder::buildInCondition()` fails to handle array not starting with index 0
parent
dd4e53e6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
QueryBuilder.php
extensions/sphinx/QueryBuilder.php
+1
-1
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
QueryBuilder.php
framework/db/QueryBuilder.php
+1
-1
No files found.
extensions/sphinx/QueryBuilder.php
View file @
5b3fa9f5
...
...
@@ -716,7 +716,7 @@ class QueryBuilder extends Object
return
"
$column
$operator
("
.
implode
(
', '
,
$values
)
.
')'
;
}
else
{
$operator
=
$operator
===
'IN'
?
'='
:
'<>'
;
return
"
$column$operator
{
$values
[
0
]
}
"
;
return
$column
.
$operator
.
reset
(
$values
)
;
}
}
...
...
framework/CHANGELOG.md
View file @
5b3fa9f5
...
...
@@ -34,6 +34,7 @@ Yii Framework 2 Change Log
-
Bug #1992: In module scenario that use 'site/captcha' will get wrong refreshUrl (callmez)
-
Bug #1993: afterFind event in AR is now called after relations have been populated (cebe, creocoder)
-
Bug #1998: Unchecked required checkbox never pass client validation (klevron)
-
Bug #2091:
`QueryBuilder::buildInCondition()`
fails to handle array not starting with index 0 (qiangxue)
-
Bug: Fixed
`Call to a member function registerAssetFiles() on a non-object`
in case of wrong
`sourcePath`
for an asset bundle (samdark)
-
Bug: Fixed incorrect event name for
`yii\jui\Spinner`
(samdark)
-
Bug: Json::encode() did not handle objects that implement JsonSerializable interface correctly (cebe)
...
...
framework/db/QueryBuilder.php
View file @
5b3fa9f5
...
...
@@ -988,7 +988,7 @@ class QueryBuilder extends \yii\base\Object
return
"
$column
$operator
("
.
implode
(
', '
,
$values
)
.
')'
;
}
else
{
$operator
=
$operator
===
'IN'
?
'='
:
'<>'
;
return
"
$column$operator
{
$values
[
0
]
}
"
;
return
$column
.
$operator
.
reset
(
$values
)
;
}
}
...
...
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