Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Normal
Description
The syntax rules for pg ($$) escaped string literals in cqlsh do not match the lexer rule for this type in Lexer.g.
The unclosedPgString rule is not correctly matching pg string literals in multi-line statements so:
INSERT INTO test.test (id) values ( ...$$<xml/>
fails with a syntax error at the forward slash.
Both pgStringLiteral and unclosedPgString fail with the following string
$$a$b$$
where this is allowed by the CQL lexer rule.
Attachments
Issue Links
- is duplicated by
-
CASSANDRA-12187 $$ escaped string literals are not handled correctly in cqlsh
- Resolved
- relates to
-
CASSANDRA-15948 Multiple failures in cqlsh_tests.test_cqlsh.TestCqlsh
- Resolved