Bug #66773 | a simple case that may break replication | ||
---|---|---|---|
Submitted: | 11 Sep 2012 16:09 | Modified: | 12 Sep 2012 17:15 |
Reporter: | zhai weixiang (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S3 (Non-critical) |
Version: | 5.5.27, 5.5.29 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[11 Sep 2012 16:09]
zhai weixiang
[11 Sep 2012 19:01]
Sveta Smirnova
Thank you for the report. I see no problem here. Please send us output of show create table tmpp;
[12 Sep 2012 1:42]
zhai weixiang
mysql> show create table tmpp\G *************************** 1. row *************************** Table: tmpp Create Table: CREATE TABLE `tmpp` ( `a` bigint(20) DEFAULT NULL, `cast(substr(a.feature,15) as signed integer)` bigint(7986) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=gbk 1 row in set (0.00 sec) Sorry, I had a mistake of creating table . But I tried to execute the statement in binlog to create another table, and got an error mysql> CREATE TABLE `tmpq` ( `a` bigint(20) DEFAULT NULL, `cast(substr(a.feature,15) as signed integer)` bigint(7986) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=gbk; ERROR 1439 (42000): Display width out of range for column 'cast(substr(a.feature,15) as signed integer)' (max = 255) So ,is it possible that this error can break replication in slave ?
[12 Sep 2012 17:15]
Sveta Smirnova
Thank you for the feedback. Actually this is not replication-related problem: slave replicates all changes just fine. This is issue with how table is created: it is nonsense to have bigint(7986) column. And this is fixed in version 5.7 already, but since there is no public bug report for 5.5 I set this as "Verified".
[13 Sep 2012 3:58]
liu hickey
Any backport plan for 5.5?