I have some PHP code that I'm trying to port from MySQL to MonetDB. The code uses ODBC, so in theory it should just be a case of changing the driver.
Here's an example of the SQL being generated by PHP and sent to the database:
SELECT mycolumn FROM foo WHERE bar="123";
Unfortunately MonetDB uses a different quoting convention to MySQL: column names need to be wrapped in double quotes, values in single quotes. So it would expect:
SELECT "mycolumn" FROM foo WHERE bar='123';
Rather than going through thousands of lines of PHP code fixing all this, is there any easy way to solve the problem? Can ODBC magically fix the quoting, or perhaps MonetDB has a config option to permit it?