[MDEV-15387] setting section collation charset Created: 2018-02-22  Updated: 2018-05-30  Resolved: 2018-05-30

Status: Closed
Project: MariaDB Server
Component/s: Character Sets
Affects Version/s: 5.5.59-galera
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Amine Kouicem Assignee: Unassigned
Resolution: Not a Bug Votes: 0
Labels: None
Environment:

Windows, delphi application


Attachments: PNG File Capture.PNG    

 Description   

I'm actually developping an application using delphi as a programming laguage and mariaDB as a database server, i generate a query with the application witch creates variables in the connection session and affecte to them values, my problem accours when try to compare the value of a variable and a database field i have the message: illegal mix of collations (utf8_general_ci implicit) and (utf8_unicode_ci implicit) but whene i try to execute the same query in a database administration tool (heidiSQL) it runs normally.
Example of query : set @code_employe = '000';
set @nbr_enf_en_charge := (select valeur from employe_info_libre where code_info_libre = 'Question1' and code_employe = @code_employe) ;
select @nbr_enf_en_charge as nbr_enf_en_charge ;
And i think that is the collation used for the encoding of the variables values and i want to set it to utf8_unicode_ci. Thank you



 Comments   
Comment by Elena Stepanova [ 2018-05-30 ]

Hi!
Bug-tracking system is not the right place to seek advice. Please use public forums and community resources, there is plenty of information regarding the "Illegal mix of collations" out there.
If you believe you have encountered a bug, then do use JIRA, but please provide a complete example – your server configuration and a set of statements that cause the result which you consider wrong, and indicate why you think it is wrong, and what you expect instead.

Generated at Thu Feb 08 08:20:54 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.