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
15b9f97c
Commit
15b9f97c
authored
Apr 23, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed typo in query builder and reverted changes to DbCache.php
parent
c09ace8e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
DbCache.php
framework/caching/DbCache.php
+1
-1
QueryBuilder.php
framework/db/QueryBuilder.php
+1
-1
No files found.
framework/caching/DbCache.php
View file @
15b9f97c
...
...
@@ -124,7 +124,7 @@ class DbCache extends Cache
$query
=
new
Query
;
$query
->
select
(
array
(
'id'
,
'data'
))
->
from
(
$this
->
cacheTable
)
->
where
(
array
(
'i
n'
,
'id'
,
(
array
)
$keys
))
->
where
(
array
(
'i
d'
=>
$keys
))
->
andWhere
(
'([[expire]] = 0 OR [[expire]] > '
.
time
()
.
')'
);
if
(
$this
->
db
->
enableQueryCache
)
{
...
...
framework/db/QueryBuilder.php
View file @
15b9f97c
...
...
@@ -744,7 +744,7 @@ class QueryBuilder extends \yii\base\Object
$parts
=
array
();
foreach
(
$condition
as
$column
=>
$value
)
{
if
(
is_array
(
$value
))
{
// IN condition
$parts
[]
=
$this
->
buildInCondition
(
'in'
,
array
(
$column
,
$value
),
$
query
);
$parts
[]
=
$this
->
buildInCondition
(
'in'
,
array
(
$column
,
$value
),
$
params
);
}
else
{
if
(
strpos
(
$column
,
'('
)
===
false
)
{
$column
=
$this
->
db
->
quoteColumnName
(
$column
);
...
...
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