Details
Description
Queries like
select x from default where contains(x, "
"")
fail with a syntax error (end of input)
('\'')
fails too with invalid quoted string.
Attachments
Issue Links
- backports to
-
MB-46262 Backport MB-30176 to 6.6.3
-
- Closed
-
Pierre Regazzoni, I'm not sure I follow... in the last example you have an opening single quote plus escaped literal single quote and no closing single quote, hence the syntax error. You can use "'" (enclose the single quote in double quotes) or '''' (enclose an escaped-using-character-doubling single quote in single quotes).
Remember there is a special case for single quotes where {{'' }}=={{ \'}} when inside a string.
cbq> select '''';
...
"results": [
{
"$1": "'"
...