Why does INSERT '0'
in bit(1), produce an error:
#1406 - Data too long for column [del] at row [del].
If I INSERT 0
(like int) everything is fine. Why doesn't the field want to automatically convert the string to an integer?
Why does INSERT '0'
in bit(1), produce an error:
#1406 - Data too long for column [del] at row [del].
If I INSERT 0
(like int) everything is fine. Why doesn't the field want to automatically convert the string to an integer?
Try:
INSERT '0'='0';
INSERT '0'='1';
to insert resp. true
and false
.