Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upBug at using tables with more than 16 fields #477
Comments
This comment has been minimized.
|
What error are you getting? I think you are running into the default column number limitation. The docs for
Does this work for you when enabling the |
This comment has been minimized.
tredoe
commented
Oct 13, 2016
|
I'm supposed that is the problem. What there is to write in |
This comment has been minimized.
Where you define diesel as a dependency, you can also list the features you want to enable, like so: [dependencies]
diesel = { version = "0.8", features = ["postgres", "large-tables"] } |
This comment has been minimized.
tredoe
commented
Oct 13, 2016
|
The error that I get is like
|
This comment has been minimized.
tredoe
commented
Oct 13, 2016
|
I had in
|
This comment has been minimized.
tredoe
commented
Oct 13, 2016
|
It works now using:
Thanks! |
This comment has been minimized.
|
Great! |
killercup
closed this
Oct 13, 2016
This comment has been minimized.
|
I just ran into this issue and this is ridiculous. Why is there such a thing as "large table support?" Shouldn't it default to any size table you like? |
This comment has been minimized.
|
@lancecarlson I understand your frustration, but sadly it's a known limitation right now. In Diesel, but also in Rust itself: Tables are represented as tuples and currently, Rust does not have a way to deal with arbitrarily large tuples. If you want to know more, have a look at Diesel PR #747, the resulting rust-lang/rfcs#1921 and the newer rust-lang/rfcs#1935. |
This comment has been minimized.
mattdeboard
commented
Oct 21, 2017
|
Actually I guess this answers my other question |
mattdeboard
referenced this issue
Oct 21, 2017
Closed
infer_schema! reaches the recursion limit easily #1127
flosse
referenced this issue
Dec 8, 2017
Closed
Using `Option<i32>` and `infer_schema!` with SQLite does not work #1359
This comment has been minimized.
robsaunders
commented
Mar 16, 2018
|
The error for this is so ambiguous it's kind of ridiculous. Hopefully rust improves, removes this limitation for enums, and people stop using huge macros as fundamental functionality in their libraries. |
tredoe commentedOct 13, 2016
There is a little bug when you have a table with more than 16 fields.
To check it, I use this table:
And I run the next command
$ dropdb diesel_demo && diesel setup && cargo test
It should be ok. Now, comment out the field 'foo15' and try it again.