Backticks are considered a syntax error
mikedfunk opened this issue · comments
Mike Funk commented
e.g.
SELECT * FROM `my_table`
Steve Purcell commented
You didn't say what database you're using, but backticks are not ANSI-compliant. I'm guessing you're using MySQL, in which case I imagine you could instead use the standard double-quotes.
Steve Purcell commented
(In MySQL you can apparently use SET sql_mode = 'ANSI_QUOTES';
to get standards-compliant behaviour.)
Mike Funk commented
Sorry, yes, MySQL. I always thought backticks were preferred in order to avoid problems with reserved words, kind of like double-quoting variables in bash. I didn't realize it was not standards-compliant.
Pablo Largo Mohedano commented
Could be a possibility of ignoring backticks as a syntax error if passing a specific parameter?