mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +03:00
Bug #13601: Wrong int type for bit
The wrong value was being reported as the field_length for BIT fields, resulting in confusion for at least Connector/J. The field_length is now always the number of bits in the field, as it should be.
This commit is contained in:
@@ -227,3 +227,15 @@ select sum(a1), b1+0, b2+0 from t1 join t2 on b1 = b2 group by b1 order by 1;
|
||||
select 1 from t1 join t2 on b1 = b2 group by b1 order by 1;
|
||||
select b1+0,sum(b1), sum(b2) from t1 join t2 on b1 = b2 group by b1 order by 1;
|
||||
drop table t1, t2;
|
||||
|
||||
#
|
||||
# Bug #13601: Wrong field length reported for BIT fields
|
||||
#
|
||||
create table t1 (a bit(7));
|
||||
insert into t1 values (0x60);
|
||||
--enable_metadata
|
||||
select * from t1;
|
||||
--disable_metadata
|
||||
drop table t1;
|
||||
|
||||
--echo End of 5.0 tests
|
||||
|
@@ -133,3 +133,15 @@ show create table t1;
|
||||
alter table t1 engine=innodb;
|
||||
show create table t1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Bug #13601: Wrong field length reported for BIT fields
|
||||
#
|
||||
create table t1 (a bit(7)) engine=innodb;
|
||||
insert into t1 values (0x60);
|
||||
--enable_metadata
|
||||
select * from t1;
|
||||
--disable_metadata
|
||||
drop table t1;
|
||||
|
||||
--echo End of 5.0 tests
|
||||
|
Reference in New Issue
Block a user