Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mysql collation type conflicts

Status
Not open for further replies.

axman505

Technical User
Jun 20, 2001
489
US
Here is the situation, developed an application using utf8 collation with mysql 4.1.7. The server it is running on has the default collatoin set of latin1-swedish. When we try to run the following query, we get an error.

Code:
select d.location, d.docid, d.ownerid, d.filename, d.date_added, d.size, d.filetype,d.ispress, p.denied, DATE_FORMAT(date_added, '%c/%e/%Y') as datesubmitted from ad_document as d LEFT JOIN ad_document_permissions as p ON d.docid=p.docid and p.userid = '101' where (companyid = '1') and (CONCAT(filename,'.',filetype) = 'AIM_guide_SCC.pdf' or CONCAT(filename,'.',filetype) = 'activedoc_todo.txt' ) ORDER BY CONCAT(filename,'.',filetype) ;

    SQL/DB Error -- [Illegal mix of collations (utf8_general_ci,IMPLICIT), (latin1_swedish_ci,COERCIBLE), (utf8_general_ci,IMPLICIT) for operation 'concat']

My question is, can you specify the collatoin type to use for a connection?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top