Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModifyLimitQueryTest::testModifyLimitQuerySubSelect() fails on OracleDB #2252

Closed
DeepDiver1975 opened this issue Dec 11, 2015 · 5 comments · Fixed by #2276
Closed

ModifyLimitQueryTest::testModifyLimitQuerySubSelect() fails on OracleDB #2252

DeepDiver1975 opened this issue Dec 11, 2015 · 5 comments · Fixed by #2276

Comments

@DeepDiver1975
Copy link
Contributor


[Doctrine\DBAL\Exception\SyntaxErrorException] An exception occurred while executing 'SELECT a.* FROM (SELECT *, (SELECT COUNT(*) FROM modify_limit_table) AS cnt FROM modify_limit_table) a WHERE ROWNUM <= 10':

ORA-00923: FROM keyword not found where expected

With queries:
8. SQL: 'SELECT a.* FROM (SELECT *, (SELECT COUNT(*) FROM modify_limit_table) AS cnt FROM modify_limit_table) a WHERE ROWNUM <= 10' Params: 
7. SQL: 'INSERT INTO modify_limit_table (test_int) VALUES (?)' Params: '4'
6. SQL: 'INSERT INTO modify_limit_table (test_int) VALUES (?)' Params: '3'
5. SQL: 'INSERT INTO modify_limit_table (test_int) VALUES (?)' Params: '2'
4. SQL: 'INSERT INTO modify_limit_table (test_int) VALUES (?)' Params: '1'
3. SQL: 'TRUNCATE TABLE modify_limit_table2' Params: 
2. SQL: 'TRUNCATE TABLE modify_limit_table' Params: 

Trace:
/home/deepdiver/Development/ownCloud/doctrine2/dbal/lib/Doctrine/DBAL/DBALException.php:116
/home/deepdiver/Development/ownCloud/doctrine2/dbal/lib/Doctrine/DBAL/Connection.php:832
/home/deepdiver/Development/ownCloud/doctrine2/dbal/lib/Doctrine/DBAL/Connection.php:764
/home/deepdiver/Development/ownCloud/doctrine2/dbal/tests/Doctrine/Tests/DBAL/Functional/ModifyLimitQueryTest.php:117
/home/deepdiver/Development/ownCloud/doctrine2/dbal/tests/Doctrine/Tests/DBAL/Functional/ModifyLimitQueryTest.php:108
phar:///home/deepdiver/Development/phpunit.phar/phpunit/Framework/TestCase.php:866
phar:///home/deepdiver/Development/phpunit.phar/phpunit/Framework/TestCase.php:743
phar:///home/deepdiver/Development/phpunit.phar/phpunit/Framework/TestResult.php:609
phar:///home/deepdiver/Development/phpunit.phar/phpunit/Framework/TestCase.php:699
phar:///home/deepdiver/Development/phpunit.phar/phpunit/Framework/TestSuite.php:722
phar:///home/deepdiver/Development/phpunit.phar/phpunit/Framework/TestSuite.php:722
phar:///home/deepdiver/Development/phpunit.phar/phpunit/TextUI/TestRunner.php:406
phar:///home/deepdiver/Development/phpunit.phar/phpunit/TextUI/Command.php:153
/tmp/ide-phpunit.php:294
/tmp/ide-phpunit.php:582

 /home/deepdiver/Development/ownCloud/doctrine2/dbal/tests/Doctrine/Tests/DbalFunctionalTestCase.php:73

@Ocramius
Copy link
Member

@DeepDiver1975 I just realized that you use phpunit.phar - it is a minor issue, but please rely on ./vendor/bin/phpunit, installed as dev dependency.

@deeky666
Copy link
Member

deeky666 commented Jan 6, 2016

Not related to PHAR though. Confirmed the issue. That test class is very fragile (we know that) as it uses raw SQL and assumes it works on all platforms. We might alter the SQL though to make it more compatible.

@deeky666 deeky666 added this to the 2.6 milestone Jan 6, 2016
@deeky666 deeky666 self-assigned this Jan 6, 2016
deeky666 added a commit to deeky666/dbal that referenced this issue Jan 6, 2016
@deeky666 deeky666 added PR Created and removed WIP labels Jan 6, 2016
deeky666 added a commit to deeky666/dbal that referenced this issue Jan 6, 2016
- fixes platform's COLUMN ON statement support
- implements reverse engineering for column comments
- marks boolean column type commented for distinction

fixes doctrine#2252
@deeky666
Copy link
Member

deeky666 commented Jan 6, 2016

Sorry wrong issue reference.

@Ocramius
Copy link
Member

Ocramius commented Jan 7, 2016

👍

bburnichon pushed a commit to bburnichon/dbal that referenced this issue Jun 16, 2016
@Ocramius Ocramius changed the title ModifyLimitQueryTest::testModifyLimitQuerySubSelect() fails on Oracle ModifyLimitQueryTest::testModifyLimitQuerySubSelect() fails on OracleDB Jul 22, 2017
@github-actions
Copy link

github-actions bot commented Aug 4, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants