DDC-185: 2 Test failures on Oracle OCI8 #231

Closed
opened 2026-01-22 12:31:38 +01:00 by admin · 1 comment
Owner

Originally created by @doctrinebot on GitHub (Nov 30, 2009).

Jira issue originally created by user @beberlei:

1) Doctrine\Tests\ORM\Functional\SingleTableInheritanceTest::testPolymorphicFind
Exception: [PHPUnit*Framework_Error*Notice] Undefined index: number

With queries:
1. SQL: 'CREATE TABLE ParentEntity (id NUMBER(10) NOT NULL, DATA VARCHAR2(255) NOT NULL, discr VARCHAR2(255) NOT NULL, "number" NUMBER(10) DEFAULT NULL, related*entity*id NUMBER(10) DEFAULT NULL, PRIMARY KEY(id))' Params: 
2. SQL: 'INSERT INTO ParentEntity (id, DATA, "number", related*entity*id, discr) VALUES (?, ?, ?, ?, ?)' Params: '5', 'thedata', '1234', '', 'child'

Trace:
/home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/Persisters/StandardEntityPersister.php:733
/home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/Persisters/SingleTablePersister.php:82
/home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/Persisters/StandardEntityPersister.php:565
/home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/Persisters/StandardEntityPersister.php:413
/home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/EntityRepository.php:96
/home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/EntityManager.php:302
/home/benny/code/php/wsnetbeans/Doctrine/trunk/tests/Doctrine/Tests/ORM/Functional/SingleTableInheritanceTest.php:152


/home/benny/code/php/wsnetbeans/Doctrine/trunk/tests/Doctrine/Tests/OrmFunctionalTestCase.php:235

2) Doctrine\Tests\ORM\Functional\LifecycleCallbackTest::testChangesDontGetLost
Exception: [PHPUnit*Framework_Error_Warning] oci_execute(): ORA-01400: cannot insert NULL into ("DOCTRINE*TESTS"."LIFECYCLECALLBACKTESTUSER"."VALUE")

With queries:
1. SQL: 'CREATE TABLE lc*cb_test*entity (id NUMBER(10) NOT NULL, value VARCHAR2(255) NOT NULL, PRIMARY KEY(id))' Params: 
2. SQL: 'SELECT LifecycleCallbackTestUser*id*s.nextval FROM DUAL' Params: 
3. SQL: 'INSERT INTO LifecycleCallbackTestUser (id, value, name) VALUES (?, ?, ?)' Params: '1', '', 'Bob'

Trace:
/home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:140
/home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/Persisters/StandardEntityPersister.php:151
/home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/UnitOfWork.php:698
/home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/UnitOfWork.php:283
/home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/EntityManager.php:288
/home/benny/code/php/wsnetbeans/Doctrine/trunk/tests/Doctrine/Tests/ORM/Functional/LifecycleCallbackTest.php:50


/home/benny/code/php/wsnetbeans/Doctrine/trunk/tests/Doctrine/Tests/OrmFunctionalTestCase.php:235
Originally created by @doctrinebot on GitHub (Nov 30, 2009). Jira issue originally created by user @beberlei: ``` 1) Doctrine\Tests\ORM\Functional\SingleTableInheritanceTest::testPolymorphicFind Exception: [PHPUnit*Framework_Error*Notice] Undefined index: number With queries: 1. SQL: 'CREATE TABLE ParentEntity (id NUMBER(10) NOT NULL, DATA VARCHAR2(255) NOT NULL, discr VARCHAR2(255) NOT NULL, "number" NUMBER(10) DEFAULT NULL, related*entity*id NUMBER(10) DEFAULT NULL, PRIMARY KEY(id))' Params: 2. SQL: 'INSERT INTO ParentEntity (id, DATA, "number", related*entity*id, discr) VALUES (?, ?, ?, ?, ?)' Params: '5', 'thedata', '1234', '', 'child' Trace: /home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/Persisters/StandardEntityPersister.php:733 /home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/Persisters/SingleTablePersister.php:82 /home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/Persisters/StandardEntityPersister.php:565 /home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/Persisters/StandardEntityPersister.php:413 /home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/EntityRepository.php:96 /home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/EntityManager.php:302 /home/benny/code/php/wsnetbeans/Doctrine/trunk/tests/Doctrine/Tests/ORM/Functional/SingleTableInheritanceTest.php:152 /home/benny/code/php/wsnetbeans/Doctrine/trunk/tests/Doctrine/Tests/OrmFunctionalTestCase.php:235 2) Doctrine\Tests\ORM\Functional\LifecycleCallbackTest::testChangesDontGetLost Exception: [PHPUnit*Framework_Error_Warning] oci_execute(): ORA-01400: cannot insert NULL into ("DOCTRINE*TESTS"."LIFECYCLECALLBACKTESTUSER"."VALUE") With queries: 1. SQL: 'CREATE TABLE lc*cb_test*entity (id NUMBER(10) NOT NULL, value VARCHAR2(255) NOT NULL, PRIMARY KEY(id))' Params: 2. SQL: 'SELECT LifecycleCallbackTestUser*id*s.nextval FROM DUAL' Params: 3. SQL: 'INSERT INTO LifecycleCallbackTestUser (id, value, name) VALUES (?, ?, ?)' Params: '1', '', 'Bob' Trace: /home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:140 /home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/Persisters/StandardEntityPersister.php:151 /home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/UnitOfWork.php:698 /home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/UnitOfWork.php:283 /home/benny/code/php/wsnetbeans/Doctrine/trunk/lib/Doctrine/ORM/EntityManager.php:288 /home/benny/code/php/wsnetbeans/Doctrine/trunk/tests/Doctrine/Tests/ORM/Functional/LifecycleCallbackTest.php:50 /home/benny/code/php/wsnetbeans/Doctrine/trunk/tests/Doctrine/Tests/OrmFunctionalTestCase.php:235 ```
admin added the Bug label 2026-01-22 12:31:38 +01:00
admin closed this issue 2026-01-22 12:31:39 +01:00
Author
Owner

@doctrinebot commented on GitHub (Dec 9, 2009):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Dec 9, 2009): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#231