Can't duplicate rows when table schema contains bit columns

[expired user #5221]'s profile image [expired user #5221] posted 13 years ago in General Permalink
Hello, since I updated to beta version duplicating rows (via ctrl+ins) that involve columns with bit data result in an SQL error. (eg: /* SQL Error (1064): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 */)

It worked ok in version 6 stable.

Bye and thanks again for the awesome program~
Code modification/commit from ansgar.becker, 13 years ago, revision 6.0.0.3823
Introduce support for BIT fields in grids and export output. See issue #766 and http://www.heidisql.com/forum.php?t=8462
ansgar's profile image ansgar posted 13 years ago Permalink
There was never a working BIT support in HeidiSQL yet. But I'm now working on that, only bitmask calculation is driving me nuts. So I have committed the code now in r3823 which allows you to enter bit values like '01010111' into a grid cell, while the displayed values from the server sometimes are wrong.
ansgar's profile image ansgar posted 13 years ago Permalink
For further discussion see issue #766
[expired user #5221]'s profile image [expired user #5221] posted 13 years ago Permalink
Wow looks like it's working now, i can even see values from server correctly! Thanks!!happy
ansgar's profile image ansgar posted 13 years ago Permalink
Well most values seem right, but I have seen wrong ones too, so be carefull - this is not yet well tested.
ansgar's profile image ansgar posted 13 years ago Permalink
By the way, you can see the server values compared to what HeidiSQL reads when firing:
SELECT bin(bitcolumn), bitcolumn FROM mytable
[expired user #5221]'s profile image [expired user #5221] posted 13 years ago Permalink
Oh ok i'll double check values when it's important stuff then!

Please login to leave a reply, or register at first.