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 upNo support for some MySQL data types #830
Comments
killercup
added
help wanted
mysql
labels
Apr 5, 2017
This comment has been minimized.
Thomspoon
commented
Apr 30, 2017
•
|
Since the diesel_infer_schema seems to only work off of the default SQL types, this might require some direction on how a maintainer can help out. edit: I have a custom U24 struct for Mediumint, and BIT is the same as TINYINT(1), which is already handled by the code so a |
This comment has been minimized.
This comment has been minimized.
Thomspoon
commented
Apr 30, 2017
|
I figured primitives were the only acceptable types. If mediumint could just be a i32, that would solve a lot of problems at the expense of one byte per use. |
This comment has been minimized.
|
We can implement |
This was referenced Jul 6, 2017
This comment has been minimized.
|
Task list, to keep track:
Feel free to copy this comment in the top. IMO, this makes it easier to keep track of the issue :-) edit: Mmm, nevermind. Seems like only MEDIUMINT is missing. |
This comment has been minimized.
|
Yeah, and we can't add support for it as there is no type in rust to serialize/deserialize it. |
This comment has been minimized.
|
The only type left is mediumint which we aren't going to support. Closing this. |
Razican commentedMar 29, 2017
Diesel currently supports only the main MySQL data types, defined here. In that documentation page the MySQL documentation is linked, were it can be seen that there are more types (
MEDIUMINT,DECIMAL,VARCHAR,VARBINARY,TINYBLOB,TINYTEXT,MEDIUMBLOB,MEDIUMTEXT,LONGBLOB,LONGTEXTandBIT) that are not supported by the current implementation.Trying to use these types gives these errors:
Reported in Rust user's forum here.