Bug #19648 Merge table does not work with bit types

Submitted: 9 May 2006 17:52 Modified: 15 Jun 2006 4:22
Reporter: Predrag Ostojic Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:5.0.18/5.0BK/5.1BK OS:Linux (SUSE 9.2)
Assigned to: Antony Curtis CPU Architecture:Any

[9 May 2006 17:52] Predrag Ostojic
Description:
See the example below.

It works only for bit(M) where M is multiple of 8.

How to repeat:
mysql> create table t1 (b bit(1));
Query OK, 0 rows affected (0.06 sec)

mysql> create table t2 (b bit(1));
Query OK, 0 rows affected (0.06 sec)

mysql> create table tm (b bit(1)) engine = merge union = (t1,t2);
Query OK, 0 rows affected (0.02 sec)

mysql> select * from tm;
ERROR 1168 (HY000): All tables in the MERGE table are not identically defined
[9 May 2006 18:20] MySQL Verification Team
Thank you for the bug report.

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 5.1.10-beta-debug

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> create table t1 (b bit(1));
Query OK, 0 rows affected (0.01 sec)

mysql> create table t2 (b bit(1));
Query OK, 0 rows affected (0.01 sec)

mysql> create table tm (b bit(1)) engine = merge union = (t1,t2);
Query OK, 0 rows affected (0.01 sec)

mysql> select * from tm;
ERROR 1168 (HY000): All tables in the MERGE table are not identically defined
mysql> exit
[11 May 2006 7:56] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/6237
[31 May 2006 0:11] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/7069
[14 Jun 2006 22:58] Antony Curtis
Appears to have been pushed to 5.0.23 repository.
[15 Jun 2006 4:22] Paul DuBois
Noted in 5.0.23 changelog.

MERGE tables did not work reliably with BIT columns.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.