-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
table have more than one primary_key can not use on_conflict(diesel::dsl::DuplicatedKeys) #3872
Comments
Thanks for opening this issue. Please provide all the relevant code that is necessary to reproduce your error message, as otherwise it's hard/impossible for anyone to see what's wrong here. Also please provide the complete error message as emitted by rustc. Based on the provided part of the error message it seems to miss relevant information (like line information and code snippet of the actual error.) |
FAIL codeschema.rs
models.rs
insert into code
error log
when id use one Field primary_key this code cargo check passPass Codeschema.rs
models.rs
insert into code
|
@weiznich please help confirm again |
As this is a project run in my free time I can only work on stuff if I have time. That usually means that it can take several days/weeks/month until you hear back from me about something. Pinging me usually puts such things down on my priority list. |
This commit changes some `QueryFragment` impls that previously assumed that the provided primary key consist only of a single column. The new implementation allows composite keys as well. In addition I also added two tests to cover these cases as well.
I've added #3877 to fix this issue. Please check if that resolves your problem. |
This commit changes some `QueryFragment` impls that previously assumed that the provided primary key consist only of a single column. The new implementation allows composite keys as well. In addition I also added two tests to cover these cases as well.
This commit changes some `QueryFragment` impls that previously assumed that the provided primary key consist only of a single column. The new implementation allows composite keys as well. In addition I also added two tests to cover these cases as well.
Closed by #3877 |
@weiznich 3q verify much |
Setup
schema.rs
models.rs
Versions
Feature Flags
Problem Description
table have more than one primary_key can not use on_conflict(diesel::dsl::DuplicatedKeys)
What are you trying to accomplish?
What is the expected output?
What is the actual output?
Are you seeing any additional errors?
Steps to reproduce
Checklist
closed if this is not the case)
The text was updated successfully, but these errors were encountered: