MyDAC + Case sensitive MySQL Server = Problem
Posted: Mon 01 Dec 2008 20:15
Hello there.
Here“s my environment:
C++ Builder 6 all updated.
Windows XP SP2 all updated.
MySQL Server 5.0.37 running on local windows xp.
MyDac 5.70.0.42 (last build).
The MySQL Server has the option lower_case_table_names setted to 0. This means that mysql differs lower and upper cases. This is the only different from mysql defaults that i have changed on configuration file. Actually, I've made a new installation only to test this issue.
How to reproduce the error:
- Create a new Project on C++ Builder.
- Put a TMyConnection component.
- Put a TMyStoredProc component and link it to the connection.
- Create a database, on that mysql server configured to be case sensitive, with a UPPER CASE name, and create some stored procedure with a UPPER CASE name too inside that database.
- Configure that TMyConnection component to access that database just created.
- Then try, on the StoredProcName property of the TMyStoredProc component, to select the stored procedure created.
- Here, when I try this last step, I get the error "#42000PROCEDURE xxx does not exist."
Remember, this only occurs on mysql server configurated to differenciate upper and lower cases (lower_case_table_names = 0, on windows).
I hope this details helps you in finding some answer.
Ask me if you need any other information.
Thanks.
Ricardo Bueno
SP - Brazil
Here“s my environment:
C++ Builder 6 all updated.
Windows XP SP2 all updated.
MySQL Server 5.0.37 running on local windows xp.
MyDac 5.70.0.42 (last build).
The MySQL Server has the option lower_case_table_names setted to 0. This means that mysql differs lower and upper cases. This is the only different from mysql defaults that i have changed on configuration file. Actually, I've made a new installation only to test this issue.
How to reproduce the error:
- Create a new Project on C++ Builder.
- Put a TMyConnection component.
- Put a TMyStoredProc component and link it to the connection.
- Create a database, on that mysql server configured to be case sensitive, with a UPPER CASE name, and create some stored procedure with a UPPER CASE name too inside that database.
- Configure that TMyConnection component to access that database just created.
- Then try, on the StoredProcName property of the TMyStoredProc component, to select the stored procedure created.
- Here, when I try this last step, I get the error "#42000PROCEDURE xxx does not exist."
Remember, this only occurs on mysql server configurated to differenciate upper and lower cases (lower_case_table_names = 0, on windows).
I hope this details helps you in finding some answer.
Ask me if you need any other information.
Thanks.
Ricardo Bueno
SP - Brazil