Fixes fdo#36594 Syntax error in SQL on "--" comment (and "//" and "/**/")
The SQL parser implementation does not handle comments. Temporarily remove "-- ..." and "// ..." end-of-line comments and "/* ... */" inline comments of a query and append comments after recomposition of the query. NOTE: The original comment positions are not preserved, all comments are appended to the query! Based on the original patch further development was done for inline comments and preserving comments' line order.
Showing
Please
register
or
sign in
to comment