[ https://issues.apache.org/jira/browse/CASSANDRA-7769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14121329#comment-14121329 ]
Robert Stupp commented on CASSANDRA-7769: ----------------------------------------- pg-style strings in cqlsh is a bigger thing. I've added this plus some other minor struff in {{cql3handling.py}}: {noformat} <pgStringLiteral> ::= /(\$[a-z][a-z0-9_]+\$).*(\$[a-z][a-z0-9_]+\$)/; {noformat} But it should look like this: {noformat} <pgStringLiteral> ::= /(\$[a-z][a-z0-9_]+\$).*\1/; {noformat} means it should use a group reference. But group references are not supported by SafeScanner. I got down to the point where SafeScanner mangles everything into one single group for everything - so group references cannot work at all. I also tried to use named groups without success. Means: it's not impossible to use pg-style strings in cqlsh but it's definitely not a trivial thing. > Implement pg-style dollar syntax for string constants > ----------------------------------------------------- > > Key: CASSANDRA-7769 > URL: https://issues.apache.org/jira/browse/CASSANDRA-7769 > Project: Cassandra > Issue Type: Improvement > Reporter: Robert Stupp > Assignee: Robert Stupp > Fix For: 3.0 > > Attachments: 7769.txt, 7769v2.txt > > > Follow-up of CASSANDRA-7740: > {{$function$...$function$}} in addition to string style variant. > See also > http://www.postgresql.org/docs/9.1/static/sql-syntax-lexical.html#SQL-SYNTAX-DOLLAR-QUOTING -- This message was sent by Atlassian JIRA (v6.3.4#6332)