-
Notifications
You must be signed in to change notification settings - Fork 288
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
Unable to construct on conflict with multiple columns dynamically #671
Comments
Not bad, but why are you saying it obviously fails? Looks correct to me based on the sample input. |
@porsager Ah sorry, didn't make it clear: |
It works when I test it. I think your conflict array might look like this: |
Don't ask me why but yeah, that was the issue. I'm sorry........ |
Cool :) It didn't catch my eye in your sample either, so understandable :D |
Whatever I'm trying, I'm unable to make an insert query with an on conflict clause depending on two or more columns...
What I want to do:
To do this, after some general issues, I followed the comment #217 (comment) and this is what I came up with:
But the result looks like this and obviously fails:
Is it possible to fix this without using
unsafe
?The text was updated successfully, but these errors were encountered: