-
-
Notifications
You must be signed in to change notification settings - Fork 539
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
[sea-orm-cli] Primary & foreign key referencing same column panics #186
Comments
Hi there, it certainly is valid schema. |
This bug exists in MySQL? Given the MySQL style of sql statements. |
What was the story @billy1624 ? |
It is not related to "primary & foreign key referencing same column cause panics". The bug is that I forgot to ensure the conjunct relation should compose of 2 |
The panic has been fixed. You can try installing the unreleased version of
|
Released in |
…to-table-ref removed `'static` and inplace, added the type `IntoTableRef`.
Hi, I've got the following SQL, which crashes the generator.
Commenting out the foreign key line, or changing the primary key to
PRIMARY KEY (a)
makes it work fine, but I'm not sure why, as I think what I'm doing is valid?The error I get is:
Running v0.2.3
The example is maybe a bit unclear, my use case is trying to store plant information (family, genus, species, etc), where (species name) isn't unique (there's tons of plants with a species name of e.g. 'alba'), but (genus name + species name) is unique.
The text was updated successfully, but these errors were encountered: