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

reWriteBatchedInserts=true causes syntax error with on conflict #1045

Closed
koen-serry opened this issue Dec 26, 2017 · 0 comments · Fixed by #1082
Closed

reWriteBatchedInserts=true causes syntax error with on conflict #1045

koen-serry opened this issue Dec 26, 2017 · 0 comments · Fixed by #1082

Comments

@koen-serry
Copy link

When doing a batch insert with the reWriteBatchInsert enabled, the query parser incorrectly determines the last parentheses after the 'on conflict' keywords.

eg. insert into test(id, name) values (:id,:name) on conflict (id) do nothing

Rewriting subsequently repeats the "ON conflict..." causing the query to fail on the server with a syntax error.

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