DBAL-162: BeforeInsertID & AfterInsertID emulation workflow, wie bei MDB2 #1319

Open
doctrinebot opened this Issue Sep 10, 2011 · 0 comments

2 participants

@doctrinebot

Jira issue originally created by user @beberlei:

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();
@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.6 milestone Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment