-
Notifications
You must be signed in to change notification settings - Fork 184
Unable to insert a new entity in a table containing name "returning" #377
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
Labels
Milestone
Comments
Care to submit a pull request to address the issue? |
Hi, @mp911de would it be fine, If I work on it? |
Sure. Contributions are always welcome. |
govi20
added a commit
to govi20/r2dbc-postgresql
that referenced
this issue
Jan 30, 2021
4 tasks
Thanks. One thing I observed, we are using a regex in
|
mp911de
pushed a commit
that referenced
this issue
Feb 18, 2021
mp911de
pushed a commit
that referenced
this issue
Feb 18, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug Report
Unable to insert a new entity in a table containing name "returning". The following error observed:
Statement already includes RETURNING clause
Versions
Current Behavior
After debugging the guts of the driver I have found that GeneratedValuesUtils#hasReturningClause pattern matcher incorrectly identifies sql query
INSERT INTO returning_user (id, name, user_details) VALUES ($1, $2, $3)
like having returning clause even though it does not have it.
Looks like RETURNING clause matcher needs to be adjusted for such cases.
Stack trace
Expected behavior/code
It's possible to insert records in a table having "returning" in its name.
The text was updated successfully, but these errors were encountered: