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
2ee02ed3
Commit
2ee02ed3
authored
Dec 30, 2015
by
James Titcumb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes unit test DB2PlatformTest::testModifiesLimitQuery
parent
e64c76db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
DB2PlatformTest.php
tests/Doctrine/Tests/DBAL/Platforms/DB2PlatformTest.php
+4
-4
No files found.
tests/Doctrine/Tests/DBAL/Platforms/DB2PlatformTest.php
View file @
2ee02ed3
...
...
@@ -347,21 +347,21 @@ class DB2PlatformTest extends AbstractPlatformTestCase
);
$this
->
assertEquals
(
'SELECT db22.* FROM (SELECT
ROW_NUMBER() OVER() AS DC_ROWNUM, db21.*
FROM (SELECT * FROM user) db21) db22 WHERE db22.DC_ROWNUM BETWEEN 1 AND 10'
,
'SELECT db22.* FROM (SELECT
db21.*, ROW_NUMBER() OVER() AS DC_ROWNUM
FROM (SELECT * FROM user) db21) db22 WHERE db22.DC_ROWNUM BETWEEN 1 AND 10'
,
$this
->
_platform
->
modifyLimitQuery
(
'SELECT * FROM user'
,
10
,
0
)
);
$this
->
assertEquals
(
'SELECT db22.* FROM (SELECT
ROW_NUMBER() OVER() AS DC_ROWNUM, db21.*
FROM (SELECT * FROM user) db21) db22 WHERE db22.DC_ROWNUM BETWEEN 1 AND 10'
,
'SELECT db22.* FROM (SELECT
db21.*, ROW_NUMBER() OVER() AS DC_ROWNUM
FROM (SELECT * FROM user) db21) db22 WHERE db22.DC_ROWNUM BETWEEN 1 AND 10'
,
$this
->
_platform
->
modifyLimitQuery
(
'SELECT * FROM user'
,
10
)
);
$this
->
assertEquals
(
'SELECT db22.* FROM (SELECT
ROW_NUMBER() OVER() AS DC_ROWNUM, db21.*
FROM (SELECT * FROM user) db21) db22 WHERE db22.DC_ROWNUM BETWEEN 6 AND 15'
,
'SELECT db22.* FROM (SELECT
db21.*, ROW_NUMBER() OVER() AS DC_ROWNUM
FROM (SELECT * FROM user) db21) db22 WHERE db22.DC_ROWNUM BETWEEN 6 AND 15'
,
$this
->
_platform
->
modifyLimitQuery
(
'SELECT * FROM user'
,
10
,
5
)
);
$this
->
assertEquals
(
'SELECT db22.* FROM (SELECT
ROW_NUMBER() OVER() AS DC_ROWNUM, db21.*
FROM (SELECT * FROM user) db21) db22 WHERE db22.DC_ROWNUM BETWEEN 6 AND 5'
,
'SELECT db22.* FROM (SELECT
db21.*, ROW_NUMBER() OVER() AS DC_ROWNUM
FROM (SELECT * FROM user) db21) db22 WHERE db22.DC_ROWNUM BETWEEN 6 AND 5'
,
$this
->
_platform
->
modifyLimitQuery
(
'SELECT * FROM user'
,
0
,
5
)
);
}
...
...
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