You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report. Can you try to parse the statement which is on line 305 on its own and see if that gives the same error, and if so, copy the entire statement here?
parseStatements postgres "" Nothing "INSERT INTO tbl (col) VALUES(e'a\\'sd')"
So almost all the code needed is there, it just needs a bit of tweaking. I think it should also use a new flag in the Dialect type, to say 'accept backslash escaped strings', because this isn't ansi syntax.
Activity
JakeWheat commentedon Jun 27, 2020
Thanks for the report. Can you try to parse the statement which is on line 305 on its own and see if that gives the same error, and if so, copy the entire statement here?
majkrzak commentedon Jun 27, 2020
20KB line is not he best to deal with, but I find out that following code causes the problem:
Looks like
'escaping is not handled correctly.JakeWheat commentedon Jun 28, 2020
The following similar code works:
parseStatements postgres "" Nothing "INSERT INTO tbl (col) VALUES(e'a\\'sd')"So almost all the code needed is there, it just needs a bit of tweaking. I think it should also use a new flag in the Dialect type, to say 'accept backslash escaped strings', because this isn't ansi syntax.