-
Notifications
You must be signed in to change notification settings - Fork 36
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
asUpdateAndReturnGeneratedKey does not work with postgresql returning id #22
Comments
I've never seen the case no value returned is expected when using RETURN_GENERATED_KEYS for a JDBC statement. What is the definition of your database table? If you really need the support for your case, you may need to work on pull requests. I myself don't have any plans to dedicate my time to work on it. |
As you may already know, the library supports |
Thanks for the response. Which is similar to serial, just new syntax (for the most part) in postgresql 10. |
Just to add: If I remove the returning id; it throws an exception:
|
@tbohnen I've never checked if the library works with the column definition yet. |
Release: 1.3.0 with Postgres I got this problem but then resolved opening the session setting
... no needs to use hope it can be useful! |
Må dele opp spørringen fordi kotliquery ikke støtter å benytte både `returnGeneratedKeys=true` og samtidig spesifisere returtype fra en insert samtidig. Se bug: seratch/kotliquery#22
Må dele opp spørringen fordi kotliquery ikke støtter å benytte både `returnGeneratedKeys=true` og samtidig spesifisere returtype fra en insert samtidig. Se bug: seratch/kotliquery#22
Må dele opp spørringen fordi kotliquery ikke støtter å benytte både `returnGeneratedKeys=true` og samtidig spesifisere returtype fra en insert samtidig. Se bug: seratch/kotliquery#22
When we execute a postgresql insert statement that does returning id, we get the following exception:
A result was returned when none was expected
The below example will throw the exception: (Untested but created from other code that did)
Stacktrace:
org.postgresql.util.PSQLException: A result was returned when none was expected.
The text was updated successfully, but these errors were encountered: