The issue: Query concat on date column turns search case sensitive. When date column removed from concat the search is not case sensitive and returns the expected result set. This is happening in DEV but not QA environment.
Both environments have the same Server, Database and Connection collation settings, latin1_swedish_ci, but are different Mysql versions (DEV:5.1.39; QA:5.1.61)
.
The table attributes in each environment (engine, charset) are the same: InnoDB
and latin1
.
QRY:
select contact_id, lastname, firstname, dob
from contact
where concat(lastname,' ',firstname,' ',dob) = 'styles furious 1988-06-18';
We need the query to be case insensitive.
Any help is appreciated, thanks.