Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Tomáš Trávníček
doctrine-dbal
Commits
051f9847
Commit
051f9847
authored
Dec 28, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
limit offset support for rawsql
parent
816d026d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
RawSql.php
lib/Doctrine/RawSql.php
+3
-1
No files found.
lib/Doctrine/RawSql.php
View file @
051f9847
...
...
@@ -155,7 +155,7 @@ class Doctrine_RawSql extends Doctrine_Hydrate {
foreach
(
$this
->
tableAliases
as
$alias
)
{
foreach
(
$this
->
tables
[
$alias
]
->
getPrimaryKeys
()
as
$key
)
{
$field
=
$alias
.
"."
.
$key
;
$field
=
$alias
.
'.'
.
$key
;
if
(
!
isset
(
$this
->
parts
[
"select"
][
$field
]))
$this
->
parts
[
"select"
][
$field
]
=
$field
.
" AS "
.
$alias
.
"__"
.
$key
;
}
...
...
@@ -175,6 +175,8 @@ class Doctrine_RawSql extends Doctrine_Hydrate {
$q
.=
(
!
empty
(
$this
->
parts
[
'groupby'
]))
?
' GROUP BY '
.
implode
(
', '
,
$this
->
parts
[
'groupby'
])
:
''
;
$q
.=
(
!
empty
(
$this
->
parts
[
'having'
]))
?
' HAVING '
.
implode
(
' '
,
$this
->
parts
[
'having'
])
:
''
;
$q
.=
(
!
empty
(
$this
->
parts
[
'orderby'
]))
?
' ORDER BY '
.
implode
(
' '
,
$this
->
parts
[
'orderby'
])
:
''
;
$q
.=
(
!
empty
(
$this
->
parts
[
'limit'
]))
?
' LIMIT '
.
implode
(
' '
,
$this
->
parts
[
'limit'
])
:
''
;
$q
.=
(
!
empty
(
$this
->
parts
[
'offset'
]))
?
' OFFSET '
.
implode
(
' '
,
$this
->
parts
[
'offset'
])
:
''
;
if
(
!
empty
(
$string
))
array_pop
(
$this
->
parts
[
'where'
]);
...
...
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