Using table names with (Firebird) and without (mysql) "
Posted: 20.01.2007, 16:41
Hi there,
unfortunately I have to support two different database servers: mysql 4.0 and Firebird 1.5.
The application was originally developed for mysql 3.23 with Zeos 5.x.
Table names don't have capitals, for ex. clients.
Now I have the problem that Firebird needs to put all table names in "" if they are not written in capitals:
for Firebird: TZTable.TableName = "clients" , BUT
for mysql: TZTable.TableName = client
Same problem for all queries etc.
I am wondering if there is a possibility from within the zeos components to enclose all table names within a pair of ""..?
Or does anyone have a clue how to write some kind of selector-routine to solve this?
Any help appreciated!
Thanks... Heiko.
unfortunately I have to support two different database servers: mysql 4.0 and Firebird 1.5.
The application was originally developed for mysql 3.23 with Zeos 5.x.
Table names don't have capitals, for ex. clients.
Now I have the problem that Firebird needs to put all table names in "" if they are not written in capitals:
for Firebird: TZTable.TableName = "clients" , BUT
for mysql: TZTable.TableName = client
Same problem for all queries etc.
I am wondering if there is a possibility from within the zeos components to enclose all table names within a pair of ""..?
Or does anyone have a clue how to write some kind of selector-routine to solve this?
Any help appreciated!
Thanks... Heiko.