Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Fix Exception Firebird driver doesn't support lastInsertId #261

Merged

Conversation

cgrandval
Copy link
Contributor

When trying to use PDO with firebase, the following exception is raised: SQLSTATE[IM001]: Driver does not support this function: driver does not support lastInsertId()

The Firebird driver doesn't support the lastInsertId function. This function is called by getLastGeneratedValue function in every insert, update and delete and throw an exception.

This fix removes the call to lastInsertId when using firebase, based on PDO’s driverName.

@ezimuel ezimuel merged commit 4e74970 into zendframework:master Nov 23, 2017
@ezimuel
Copy link
Contributor

ezimuel commented Nov 23, 2017

@cgrandval Thanks for your contribution!

@cgrandval cgrandval deleted the bugfix/firebird-lastInsertId branch December 6, 2017 21:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants