node-db-mysql
node-db-mysql copied to clipboard
Unable to read BIT columns values
I have a column of type BIT. When using the cast option set to true the result is always '0'. If i disable the cast option the returned value is '\u0000' if the value in the database is set to '0' and '\u0001' if the value is set to '1'. Looks like a bug, can u confirm?
I just read that mysql stores the BIT as a TINYINT so the '\u0001' now makes scence to me. But the fact remains that db-node keeps converting the value to '0', even if the returned value is '\u0001'.