[
https://issues.apache.org/jira/browse/CASSANDRA-12189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15385901#comment-15385901
]
Aleksey Yeschenko commented on CASSANDRA-12189:
-----------------------------------------------
Committed as
[0b49b1776e5c6aa20bc2845e5b48dafe84169d46|https://github.com/apache/cassandra/commit/0b49b1776e5c6aa20bc2845e5b48dafe84169d46]
to 3.9 and merged into trunk, thanks.
> $$ escaped string literals are not handled correctly in cqlsh
> -------------------------------------------------------------
>
> Key: CASSANDRA-12189
> URL: https://issues.apache.org/jira/browse/CASSANDRA-12189
> Project: Cassandra
> Issue Type: Bug
> Components: Tools
> Reporter: Mike Adamson
> Assignee: Mike Adamson
> Fix For: 3.9
>
>
> 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:
> {noformat}
> INSERT INTO test.test (id) values (
> ...$$<xml/>
> {noformat}
> fails with a syntax error at the forward slash.
> Both {{pgStringLiteral}} and {{unclosedPgString}} fail with the following
> string
> {noformat}
> $$a$b$$
> {noformat}
> where this is allowed by the CQL lexer rule.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)