concat bug (?)

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ben
Posts: 119
Joined: Wed 17 Nov 2004 19:48

concat bug (?)

Post by ben » Tue 28 Aug 2007 23:03

select ..., concat('CHA-', charges.chargeid), ....

Navicat correctly returns CHA-15 while MyDAC returns CHA only.

5.10.0.10 Delphi 7
and chargeid = unsigned smallint

edit
----

I just noticed that it happens only with Options.UseUnicode = true

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Wed 29 Aug 2007 13:32

I cannot reproduce the problem, please provide me with some additional information:
- a script to create a test database with a test table;
- a script to insert a couple of records in the test table;
- results of the following queries performed from your application:
SHOW VARIABLES LIKE '%collation%';
SHOW VARIABLES LIKE '%character_set%';
- the exact version of MySQL server and MySQL client. You can see it in the Info sheet of TMyConnection Editor.

Post Reply