MySQL Forums
Forum List  »  Connector/ODBC

Re: Filtering / modify incoming SQL instruction ?
Posted by: Bogdan Degtyariov
Date: January 22, 2019 01:53AM

Generally, there is no way of removing the database name out of the UPDATE statement if the client program (FileMaker) specifically put it there. The ODBC driver stands on the strict policy of not modifying the user data in any case and of not modifying the user commands unless requested through the connection options.

There is one thing that you might want to try, though I am a bit skeptical if it is going to help.
The ODBC driver has an option to disable the catalog support.
Two ways of doing it:

- ODBC Admin. Check the box in the GUI dialog
Details >> Metadata >> [x] Disable catalog support.

- Add NO_CATALOG=1 to the connection string

My opinion here is that the problem lies somewhere else. Adding of the database name is supposed to ensure that the right table in the right database gets updated. Otherwise, for table names without the database pard the current database is assumed, which might be dangerous.

What sort of error do you have if the UPDATE query is executed with the database prepended to the table name?

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.