I have created a table in MySQL as
create table bittest (id int(11),constant bit(1) default b'0' );
Then,
insert into bittest(id) values (1);
select query get printed as
+------+----------+
| id | constant |
+------+----------+
| 1 | |
+------+----------+
1 row in set (0.00 sec)
Clearly value of constant is not shown as bit.
And when I do export using mysqldump insert statement gets exported as
INSERT INTO `bittest2` VALUES (1,'\0');
which is causing issues as I don't want null values inserted.
Is there a work around for this? MySQL version 5.7.13