connector-x
connector-x copied to clipboard
DataType BIT for mysql is missing
I found this bug using Python (Polars) and the latest connectorx to connect to MariaDB.
I would appreciate if someone can add it. I tried by myself but I encountered loads of problems to run this project with rust in windows.
The DataType is: MYSQL_TYPE_BIT
What is the error?
pyo3_runtime.PanicException: not implemented: MYSQL_TYPE_BIT
Thanks in advance!!
Can you please take a look on it¿?
I'm also encountering this issue. I'm trying to make a PR to fix this but some of the main parts are macro's, which make it quite difficult to figure out what has to be done. If someone could give a high level overview, that would be an immense help
You have some info here but most of the links are broken. I rembember to find an example when I opened this issue, similar to this one but i belive more things are need to be changed in order to make it work.
I might give another try to fix this during the weekend, my problem are incompatibilities with different versions when i try to load the project using "cargo" and "just".
I think I have something working, but it maps it to a Vec<u8>, since you can define i.e. BIT(64) .
If you use a BIT(1) for a boolean value, that might be annoying to work around, but I don't think I can make it be a boolean for BIT(1) and an array for all the other values.
I have also encountered the same issue. What is the current progress of it?
It'd be helpful to provide a piece of code to reproduce the error