You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Joshua McKenzie (JIRA)" <ji...@apache.org> on 2016/07/13 12:45:21 UTC

[jira] [Resolved] (CASSANDRA-12187) $$ escaped string literals are not handled correctly in cqlsh

     [ https://issues.apache.org/jira/browse/CASSANDRA-12187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua McKenzie resolved CASSANDRA-12187.
-----------------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: 3.x)

> $$ escaped string literals are not handled correctly in cqlsh
> -------------------------------------------------------------
>
>                 Key: CASSANDRA-12187
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12187
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Mike Adamson
>
> 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)