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

Diesel does not currently support tables with primary keys consisting of more than 5 columns... #1740

Closed
joshgev opened this Issue May 29, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@joshgev

joshgev commented May 29, 2018

Hi everyone,

My typical approach is to write my SQL queries by hand and embed them in Rust code, but I am looking into Diesel as an alternative methodology, especially because my current task would be facilitated by the ability to generate queries dynamically.

In any case, I ran into the following message when trying to create a new table using diesel migration generate:

Diesel does not currently support tables with primary keys consisting of more than 5 columns. Table privileges has 6 columns in its primary key. Please open an issue and we will increase the limit.

I'd like to see this limitation relaxed because it would be difficult for me to reduce the number of columns on this particular table).

To sate my own curiosity, I'd be interested to hear why there is a limitation imposed by Diesel at all.

Thanks in advance for any help!

@weiznich

This comment has been minimized.

Contributor

weiznich commented May 29, 2018

See #1702 for a fix

@joshgev

This comment has been minimized.

joshgev commented May 29, 2018

@weiznich Fantastic! Thanks a ton. I will check it out right now.

@joshgev

This comment has been minimized.

joshgev commented May 29, 2018

Yeah, that worked; I will close this issue. Thanks again, @weiznich.

@joshgev joshgev closed this May 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment