New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Exception Firebird driver doesn't support lastInsertId #261

merged 1 commit into from Nov 23, 2017


None yet
2 participants

cgrandval commented Jul 17, 2017

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

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
coverage/coveralls Coverage remained the same at 45.805%

This comment has been minimized.

Show comment
Hide comment

ezimuel Nov 23, 2017


@cgrandval Thanks for your contribution!


ezimuel commented Nov 23, 2017

@cgrandval Thanks for your contribution!

@cgrandval cgrandval deleted the cgrandval:bugfix/firebird-lastInsertId branch Dec 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment