Re:Writing a SQLite clone from scratch in C
by wruza on Tuesday September 05, 2017 @06:41PM
(#15179688)
Do you know any decent server that interprets 6-char \uxxxx sequences as part of its top-level query syntax? I mean, how do you safely pass '\u0027' literal to it anyway? If you can't, then its literals and escaping are broken by design, so it is good to know from the start of using it.
Edit: removed double backslash from literal to not confuse it with host language's escaping.
Re:Writing a SQLite clone from scratch in C
by icebraining on Tuesday September 05, 2017 @11:01AM
(#15175866)
If you use a broken RDBMS, maybe. The standard is quite clear, and that certainly doesn't work in PortgreSQL.
And then you come across \u0027 and you're screwed.