-
-
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
No support for some MySQL data types #830
Comments
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 |
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. |
We can implement |
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. |
Yeah, and we can't add support for it as there is no type in rust to serialize/deserialize it. |
The only type left is mediumint which we aren't going to support. Closing this. |
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
,LONGTEXT
andBIT
) that are not supported by the current implementation.Trying to use these types gives these errors:
Reported in Rust user's forum here.
The text was updated successfully, but these errors were encountered: