Bug #31416 | #1271 - Illegal mix of collations for operation 'concat' | ||
---|---|---|---|
Submitted: | 5 Oct 2007 3:13 | Modified: | 2 Nov 2007 17:34 |
Reporter: | Gregory Agerba | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Charsets | Severity: | S3 (Non-critical) |
Version: | 5.0.45-community-log | OS: | Linux (CentOS 4.4) |
Assigned to: | CPU Architecture: | Any | |
Tags: | #1271, 1271, Collations, error, Illegal, mix |
[5 Oct 2007 3:13]
Gregory Agerba
[8 Oct 2007 22:49]
MySQL Verification Team
Thank you for the bug report. I am not able to repeat with current source server: mysql> select version(); +--------------+ | version() | +--------------+ | 5.0.52-debug | +--------------+ 1 row in set (0.00 sec) mysql> SHOW INDEX FROM `rmarighe_exp_w` ; Empty set (0.00 sec)
[9 Oct 2007 3:01]
Gregory Agerba
Hello, This have corrected the problem, but I guess I shouldn't have any error, even without to change it, no ? CREATE TABLE rmatest ( NumeroRMA int(10) unsigned NOT NULL auto_increment, DataRMA date NOT NULL, CodiceCliente varchar(12) collate utf8_general_ci NOT NULL, CodiceDestin varchar(5) collate utf8_general_ci NOT NULL, CodCentroAssist varchar(12) collate utf8_general_ci NOT NULL, CodCentroAssistDest varchar(5) collate utf8_general_ci NOT NULL, CodVettore varchar(5) collate utf8_general_ci NOT NULL, Chiusa int(10) unsigned NOT NULL default '0', Spedita int(11) unsigned NOT NULL default '0', NrRappCentroAssist int(10) unsigned NOT NULL default '0', DtRappCentroAssist date NOT NULL default '0000-00-00', NrDocResoCentroAssist varchar(50) collate utf8_general_ci NOT NULL, DtDocResoCentroAssist date NOT NULL default '0000-00-00', PRIMARY KEY (NumeroRMA) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=138 ; CREATE TABLE rmarighe ( NumeroRMA int(10) unsigned NOT NULL auto_increment, NrRiga int(10) unsigned NOT NULL, CodProdotto varchar(20) collate utf8_general_ci NOT NULL, NrSeriale varchar(50) collate utf8_general_ci NOT NULL default '', Quantita int(10) unsigned NOT NULL default '0', Difetto varchar(250) collate utf8_general_ci NOT NULL default '', NrDDTAcq int(10) unsigned NOT NULL default '0', DtDDTAcq date NOT NULL default '2000-01-01', ErrNrSeriale int(10) unsigned NOT NULL default '0', ResoGaranzia int(10) unsigned NOT NULL default '0', PRIMARY KEY (NumeroRMA,NrRiga) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='InnoDB free: 35840 kB' AUTO_INCREMENT=138 ;
[2 Nov 2007 17:34]
Gregory Agerba
Hello, Changing the system charset to UTF-8 has solved the problem. This issue can be closed.