I have a bunch of PHP code that is auto-generated and it puts all table names and field names within quotes. To wit:
INSERT INTO "t_ML_u_Visitor"("c_u_ID") VALUES ...
Since the code is Auto-Generated it would be much preferred if I could somehow get MySql to accept this syntax rather than subjecting the generated code to a post-process, that strips the quotes.
I have tried this:
$conn=$mysqli = new mysqli("localhost", "root", "", "myDB");
$R=$conn->options(MYSQLI_INIT_COMMAND, "SET SQL_MODE = 'ANSI'");
But to no avail.
Help?
The normal quote character is the back-quote – eg
Can you change the quote character your auto-generated queries use to suit ?
EDIT: I just tried ANSI mode, and it does what you want:
The problem then becomes that double-quote can no longer be used to quote literal strings.