Skip to content
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

MariaDB doesn't support RETURNING in update queries #1279

Closed
avsdev-cw opened this issue May 9, 2023 · 1 comment · Fixed by #1291
Closed

MariaDB doesn't support RETURNING in update queries #1279

avsdev-cw opened this issue May 9, 2023 · 1 comment · Fixed by #1291

Comments

@avsdev-cw
Copy link
Contributor

"returning" parameter of rows_update, rows_upsert and rows_patch causes invalid SQL syntax to be generated.

As per the MariaDB documentation, "RETURNING" can only be used in INSERT, REPLACE and DELETE queries.

@mgirlich mgirlich changed the title SQL "UPDATE ... RETURNING" syntax error MariaDB doesn't support RETURNING in update queries May 30, 2023
@mgirlich
Copy link
Collaborator

I added a more informative error when using returning in rows_update/patch() for MariaDB.
rows_upsert() isn't supported for MariaDB for now. If you need it, it would be great if you could add a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants