connector-x icon indicating copy to clipboard operation
connector-x copied to clipboard

DataType BIT for mysql is missing

Open x14119641 opened this issue 2 years ago • 6 comments
trafficstars

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!!

x14119641 avatar Apr 20 '23 13:04 x14119641

Can you please take a look on it¿?

x14119641 avatar Jun 15 '23 13:06 x14119641

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

MidasLamb avatar Jun 16 '23 07:06 MidasLamb

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".

x14119641 avatar Jun 16 '23 07:06 x14119641

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.

MidasLamb avatar Jun 16 '23 07:06 MidasLamb

I have also encountered the same issue. What is the current progress of it?

dawsongzhao0523 avatar Aug 30 '23 12:08 dawsongzhao0523

It'd be helpful to provide a piece of code to reproduce the error

surister avatar Apr 16 '24 16:04 surister