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
2be0fd6e
Commit
2be0fd6e
authored
Jan 27, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more union fix.
parent
d9a85d09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
QueryBuilder.php
framework/db/oci/QueryBuilder.php
+6
-1
No files found.
framework/db/oci/QueryBuilder.php
View file @
2be0fd6e
...
@@ -28,7 +28,6 @@ class QueryBuilder extends \yii\db\QueryBuilder
...
@@ -28,7 +28,6 @@ class QueryBuilder extends \yii\db\QueryBuilder
$this
->
buildWhere
(
$query
->
where
,
$params
),
$this
->
buildWhere
(
$query
->
where
,
$params
),
$this
->
buildGroupBy
(
$query
->
groupBy
),
$this
->
buildGroupBy
(
$query
->
groupBy
),
$this
->
buildHaving
(
$query
->
having
,
$params
),
$this
->
buildHaving
(
$query
->
having
,
$params
),
$this
->
buildUnion
(
$query
->
union
,
$params
),
$this
->
buildOrderBy
(
$query
->
orderBy
),
$this
->
buildOrderBy
(
$query
->
orderBy
),
];
];
$this
->
sql
=
implode
(
$this
->
separator
,
array_filter
(
$clauses
));
$this
->
sql
=
implode
(
$this
->
separator
,
array_filter
(
$clauses
));
...
@@ -36,6 +35,12 @@ class QueryBuilder extends \yii\db\QueryBuilder
...
@@ -36,6 +35,12 @@ class QueryBuilder extends \yii\db\QueryBuilder
if
(
$query
->
limit
!==
null
||
$query
->
offset
!==
null
)
{
if
(
$query
->
limit
!==
null
||
$query
->
offset
!==
null
)
{
$this
->
sql
=
$this
->
buildLimit
(
$query
->
limit
,
$query
->
offset
);
$this
->
sql
=
$this
->
buildLimit
(
$query
->
limit
,
$query
->
offset
);
}
}
$unions
=
$this
->
buildUnion
(
$query
->
union
,
$params
);
if
(
$unions
!==
''
)
{
$this
->
sql
.=
$this
->
separator
.
$unions
;
}
return
[
$this
->
sql
,
$params
];
return
[
$this
->
sql
,
$params
];
}
}
...
...
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