Bug #21411 | Merge engine does not work on tables with varchar | ||
---|---|---|---|
Submitted: | 2 Aug 2006 10:45 | Modified: | 2 Aug 2006 13:34 |
Reporter: | David Hammink | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Merge storage engine | Severity: | S2 (Serious) |
Version: | 5.0.22 | OS: | |
Assigned to: | CPU Architecture: | Any |
[2 Aug 2006 10:45]
David Hammink
[2 Aug 2006 11:10]
David Hammink
Adding default values to the smallint values cuase the same error to appear
[2 Aug 2006 13:34]
Valeriy Kravchuk
Thank you for a problem report. Sorry, but I was not able to repeat the behaviour described with 5.0.25-BK on Linux: openxs@suse:~/dbs/5.0> bin/mysql -uroot test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 5.0.25 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> CREATE TABLE `WLFiles_200607` ( -> `WL_FileID` int(11) unsigned NOT NULL auto_increment, -> `INTELKENNUNG` smallint(4), -> `DienstID` smallint(4) , -> `Date` datetime default NULL, -> `SerialNo` smallint(3) unsigned , -> `FileName` varchar(100) default NULL, -> `Directory` varchar(100) default NULL, -> `Sent` bit(1) default NULL, -> PRIMARY KEY (`WL_FileID`) -> )ENGINE=MyISAM ; CQuery OK, 0 rows affected (0.01 sec) Rmysql> CREATE TABLE `WLFiles_200608` ( -> `WL_FileID` int(11) unsigned NOT NULL auto_increment, -> `INTELKENNUNG` smallint(4) , -> `DienstID` smallint(4) , -> `Date` datetime default NULL, -> `SerialNo` smallint(3) unsigned , -> `FileName` varchar(100) default NULL, -> `Directory` varchar(100) default NULL, -> `Sent` bit(1) default NULL, -> PRIMARY KEY (`WL_FileID`) -> )ENGINE=MyISAM ; Query OK, 0 rows affected (0.02 sec) mysql> CREATE TABLE `WLFiles_T` ( -> `WL_FileID` int(11) unsigned NOT NULL auto_increment, -> `INTELKENNUNG` smallint(4) , -> `DienstID` smallint(4) , -> `Date` datetime default NULL, -> `SerialNo` smallint(3) unsigned , -> `FileName` varchar(100) default NULL, -> `Directory` varchar(100) default NULL, -> `Sent` bit(1) default NULL, -> INDEX (`WL_FileID`) -> ) -> ENGINE=MRG_MyISAM UNION=(WLFiles_200607,WLFiles_200608) INSERT_METHOD LAST; Query OK, 0 rows affected (0.01 sec) mysql> SELECT * FROM WLFiles_T; Empty set (0.00 sec) So, please, wait for 5.0.24 to be released officially and check with it.