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.5
    • 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

          People

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

            Dates

            • Created:
              Updated: