I’m using a legacy PHP framework which automatically assembles queries for me. By some reason, it is assembling a query like this:
SELECT s.status,c.client FROM client C LEFT JOIN status S ON C.id_status=S.id_status'
This isn’t a problem on my MacOS X workstation. But when I test it on my production server mysql raises the following error:
#1054 - Unknown column 's.status' in 'field list'
It is definitively a case issue on s.status. If I manually runs the query changing s,c for S,C , it works perfectly.
A quick look on google didn’t solved the issue. Any ideas?
Well, it’s said in the documentation:
There are also some solutions given in this section of the documentation as well. For example, you can set
lower_case_table_namesto1on all platforms to force names to be converted to lowercase – but you have to rename all your tables to lowercase as well in that case.