Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Nov 26, 2018
1 parent 890eae6 commit 8f8c235
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Doctrine/DBAL/Driver/PDOConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public function lastInsertId(?string $name = null) : string
throw new PDOException($e);
}

// pdo_mysql and others return '0', pdo_sqlsrv returns ''
if ($lastInsertId === '0' || $lastInsertId === '') {
// WIP regarding exceptions, see:
// https://github.com/doctrine/dbal/pull/3335#discussion_r234381175
Expand Down

0 comments on commit 8f8c235

Please sign in to comment.