Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-444

OraclePlatform getSequenceNextValSQL not handling case/quoting properly on 11g

    Details

    • Type: Bug Bug
    • Status: In Progress
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3.2
    • Fix Version/s: 2.5
    • Component/s: Platforms
    • Security Level: All
    • Labels:
    • Environment:
      PHP version 5.4.11
      Oracle 11g Instant Client version 11.2.0.3.0
      Oracle Database 11g Enterprise Edition version 11.2.0.3.0 (x64)
      OCI8 DBAL driver

      Description

      I have an installer script that uses ORM SchemaTool to create the entities in the DB and then populates with basic data using basic EM->persist calls via ORM.

      Sequence objects are created, and when using the 10g Instant Client everything worked correctly, however, upon upgrade to latest version of the Instant Client Oracle seems to be expecting consistent case for these schema objects. It appears as if they are being created with a quoted name as they are created in lowercase. OraclePlatform::getSequenceNextValSQL, however, generates "SELECT entity_id_seq.nextval FROM DUAL" and this fails with error "General error: 2289 OCIStmtExecute: ORA-02289: sequence does not exist".

      Executing "SELECT "entity_id_seq".nextval FROM DUAL" directly on the DB returns the correct value.

      I believe this may also impact the code in http://www.doctrine-project.org/jira/browse/DBAL-278

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Max Milaney
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: