Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pgsql: avoid Insert_ID() failing when lastval() is not set
If Insert_ID() is executed before nextval() has been called in the current session, SELECT lastval() will fail with `ERROR: lastval is not yet defined in this session`. When using Exceptions, this causes one to be thrown but this is not the expected behavior, as the function is expected to just return false in this case. Fixes #978 Signed-off-by: Damien Regad <dregad@mantisbt.org> Rewritten commit message
- Loading branch information