Recently I started to work with someone's library that makes use of some modern PHP5 features, and have been introduced to this strange new PDO language, where apparently you can't trouble-shoot the SQL in the usual way.
Here is a generated SQL statement which is being rejected:
INSERT INTO "eve"."utilRegisterKey" ("activeAPIMask","isActive","keyID","vCode") VALUES (?,?,?,?) ON DUPLICATE KEY UPDATE "activeAPIMask"=VALUES("activeAPIMask"),"isActive"=VALUES("isActive"),"keyID"=VALUES("keyID"),"vCode"=VALUES("vCode")
Normally I would assume that the quotation marks are what is killing this statement, but for all I know this PDO system is "cool" with that.
Here is the error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"eve"."utilRegisterKey" ("activeAPIMask","isActive","keyID","vCode") VALUES ('26' at line 1)
I have no reason to think the library is at fault, it appears to be written by an expert. So what could be going wrong?