-
Notifications
You must be signed in to change notification settings - Fork 90
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
MySql: support for unreferenced BIT columns #439
Conversation
How much more work is it to support BIT(1) in Insert/Update/Clean/Query fixtures? |
2b05bb2
to
77d857d
Compare
My assumption is that it's already working: but I haven't tested anything yet. If we refer a BIT(1) column - then a question emerges how are the values represented: right now it's mapped to |
And, do we really want to have to handle BIT(n>1) differently? May be it!s time to introduce the general binary handler. |
I would vote for splitting this into two:
|
Sounds good to me too. A general binary (hex) handler would be really useful and allow us to move on a few of the existing issues too. I think that would be my vote for our next new feature. |
On a side note, I think Travis supports some DB types (MySQL and perhaps Postgres) so perhaps we could extend the |
77d857d
to
a6eaab4
Compare
a6eaab4
to
ed28f02
Compare
This is to be able to support e.g. updating table which contains BIT column via dbfit Update or Insert fixture when the BIT column itself is not referenced
ed28f02
to
f6bcf35
Compare
…umns MySql: support for unreferenced BIT columns
This is to be able to support e.g. updating table which contains BIT column via dbfit Update fixture when the bit column itself is not referenced.
Also it's possibly covering (but not yet tested) referring single
BIT
columnsBIT (1)
. For longer BIT data typesBIT(n > 1)
referring such columns is not supported.As per the MySql driver documentation: the Java type is different for BIT(1) and BIT(n > 1).
TODO:
The problem has been originally reported on the mailing list. Update like following.
results in exception:
The columns in the UPDATE are varchar but there is a bit field in the table.