Bug #4762 | illegal mix of collations error | ||
---|---|---|---|
Submitted: | 26 Jul 2004 21:49 | Modified: | 3 Aug 2004 22:37 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / J | Severity: | S1 (Critical) |
Version: | OS: | Windows (Windows) | |
Assigned to: | Mark Matthews | CPU Architecture: | Any |
[26 Jul 2004 21:49]
[ name withheld ]
[3 Aug 2004 17:58]
Mark Matthews
What is the DDL for these tables?
[3 Aug 2004 21:20]
[ name withheld ]
I exported these two tables, think that's what you asked. # MySQL-Front Dump 2.5 # # Host: localhost Database: algos # -------------------------------------------------------- # Server version 4.1.3-beta # # Table structure for table 'jobs' # CREATE TABLE jobs ( sqlCode int(11) NOT NULL default '0', clientSqlCode int(11) default NULL, month varchar(7) character set latin1 default NULL, workerSqlCode int(11) default NULL, algaBendra int(11) default NULL, algaOficiali int(11) default NULL, sodra int(11) default NULL, pajamuMok33 int(11) default NULL, atostoginiai int(11) default NULL, priedas int(11) default NULL, premija int(11) default NULL, kuras int(11) default NULL, telefonas int(11) default NULL, baudos int(11) default NULL, avansas int(11) default NULL, avansoData varchar(10) character set cp1251 default NULL, PRIMARY KEY (sqlCode), KEY NewIndex (clientSqlCode), KEY NewIndex2 (month), KEY NewIndex3 (workerSqlCode) ) ENGINE=InnoDB DEFAULT CHARSET=cp1257; # # Table structure for table 'payments' # CREATE TABLE payments ( sqlCode int(11) NOT NULL default '0', workerSqlCode int(11) default NULL, clientSqlCode int(11) default NULL, type tinyint(4) default NULL, date varchar(10) character set latin1 default NULL, month varchar(7) default NULL, avansas int(11) default NULL, oficiali int(11) default NULL, oficialiIsmoketa tinyint(4) default NULL, likutis int(11) default NULL, likutisIsmoketa tinyint(4) default NULL, byOrder tinyint(4) default NULL, PRIMARY KEY (sqlCode), KEY NewIndex (workerSqlCode), KEY NewIndex2 (date) ) ENGINE=InnoDB DEFAULT CHARSET=cp1257;
[3 Aug 2004 22:37]
Mark Matthews
Please look at your DDL, you've mixed latin1 columns in your Cp1257 table, but are telling the server that _everything_ you send will be in Cp1257. Either declare the other columns to be Cp1257, or don't specify them (and they will inherit from DEFAULT CHARSET).
[9 Aug 2004 10:24]
[ name withheld ]
How could the columns change the charset? I didn't specify it, I didn't even know that there's such possibility to have columns in different charset. And of course, because I didn't know, I was unable to find such a bug. I'd suppose that there's problem with sql server and only maybe - with mysqlfront..