Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-162

BeforeInsertID & AfterInsertID emulation workflow, wie bei MDB2

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1
    • Fix Version/s: 2.6
    • Component/s: Drivers
    • Security Level: All
    • Labels:
      None

      Description

      The following workflow is necessary for portable code to work on all platforms:

      $nextId = $conn->nextSequenceId();
      $query = "INSERT INTO (id) VALUES (?)";
      $conn->executeUpdate($query, array($nextId));
      $nextId = $conn->lastInsertId();
      

        Activity

        Benjamin Eberlei created issue -
        Guilherme Blanco made changes -
        Field Original Value New Value
        Fix Version/s 2.3 [ 10184 ]
        Fix Version/s 2.2 [ 10142 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 13009 ] jira-feedback2 [ 17583 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17583 ] jira-feedback3 [ 19937 ]
        Benjamin Eberlei made changes -
        Fix Version/s 2.4 [ 10320 ]
        Fix Version/s 2.3 [ 10184 ]
        Benjamin Eberlei made changes -
        Fix Version/s 2.5 [ 10523 ]
        Fix Version/s 2.4 [ 10320 ]
        Benjamin Eberlei made changes -
        Fix Version/s 2.6 [ 10726 ]
        Fix Version/s 2.5 [ 10523 ]

          People

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

            Dates

            • Created:
              Updated: