Closed hannesg closed 12 years ago
Backslashes are actually not the character one should use for escaping. The SQL standard defines ' as the escape character. This change would break queries that correctly use this character to escape instead of the unofficial but sometimes working \ character (depending on which mode you connect).
On MySQL we actually set the NO_BACKSLASH_ESCAPES option so that backslashes work just like they should according to the SQL specification. On PostgreSQL we do "SET backslash_quote = off" to also disable backslashes as quotes.
Okay, I wasn't aware of that.
Hi
escape_sql currently fails when the SQL contains escaped quotes. I fixed this and added a spec for it.
Have fun Hannes Georg