-
Notifications
You must be signed in to change notification settings - Fork 430
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
Error getting generated keys after insert #2550
Comments
Changing
to
will resolve this issue. We are investigating the observed behavior with respect to execute API. We hope that the above workaround will unblock you. |
machavan
added
the
Backlog
The topic in question has been recognized and added to development backlog
label
Nov 28, 2024
Jeffery-Wasty
added
Under Investigation
Used for issues under investigation
and removed
Backlog
The topic in question has been recognized and added to development backlog
labels
Nov 29, 2024
Jeffery-Wasty
added
the
Waiting for Response
Waiting for a reply from the original poster, or affiliated party
label
Nov 29, 2024
github-project-automation
bot
moved this from Under Peer Review
to Closed Issues
in MSSQL JDBC
Jan 30, 2025
machavan
removed
Waiting for Response
Waiting for a reply from the original poster, or affiliated party
Under Investigation
Used for issues under investigation
labels
Jan 30, 2025
#2554 merged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Driver version
12.8.1.jre11
SQL Server version
Client Operating System
Linux (Ubuntu 22.04.3 LTS)
JAVA/JVM version
java-1.21.0-openjdk-amd64
Table schema
Problem description
Afterperforming an
INSERT
opertaiont, the call togetGeneratedKeys
throws an exception when there is a trigger on the table where the insert is made. Take for instance the following code snippet:Expected behavior
The record is correctly inserted, the generated keys are returned and no exception is thrown.
Actual behavior
The driver throws an exception and fails to return the generated keys.
The record is correctly inserted.
Error message/stack trace
Any other details that can be helpful
If the insert statement has more than one value, the result is the same and the update count is returned as 1 also. This also seems wrong, because all the records are inserted.
JDBC trace logs
The text was updated successfully, but these errors were encountered: