Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.3
-
Component/s: None
-
Security Level: All
-
Labels:None
Description
This issue is created automatically through a Github pull request on behalf of dpb587:
Url: https://github.com/doctrine/dbal/pull/136
Message:
Bug fix: yes
Feature addition: no
Backwards compatibility break: no
[](http://travis-ci.org/dpb587/dbal)
This test was breaking when running under `oci8` due to Oracle's deference to upper case column names. I realize Oracle has built-in sequences and `TableGenerator` is unnecessary, in theory, but it seemed like the class should work if possible. I see pgsql is in the same boat.
Tested with:
phpunit -c oci8.phpunit.xml.dist tests/Doctrine/Tests/DBAL/Functional/TableGeneratorTest.php
Before:
PHPUnit 3.5.13 by Sebastian Bergmann.
EE
Time: 0 seconds, Memory: 10.25Mb
There were 2 errors:
1) Doctrine\Tests\DBAL\Functional\TableGeneratorTest::testNextVal
Exception: [Doctrine\DBAL\DBALException] Error occured while generating ID with TableGenerator, aborted generation: Undefined index: sequence_value
2) Doctrine\Tests\DBAL\Functional\TableGeneratorTest::testNextValNotAffectedByOuterTransactions
Exception: [Doctrine\DBAL\DBALException] Error occured while generating ID with TableGenerator, aborted generation: Undefined index: sequence_value
After:
PHPUnit 3.5.13 by Sebastian Bergmann.
..
Time: 1 second, Memory: 10.25Mb
OK (2 tests, 5 assertions)
Fixed