[
https://issues.apache.org/jira/browse/CASSANDRA-7769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Stupp updated CASSANDRA-7769:
------------------------------------
Attachment: 7769.txt
Got an initial draft for this one.
Someone out there who can take a look at that antlr foo in the patch?
Patch consumes constructs like this:
{{$foobar$wio jwqoiwq34iu$o23oi j2o3$few$foobar$}}
-> {{wio jwqoiwq34iu$o23oi j2o3$few}}
{{$bazboo$some'arbitrary'baz$bazboo$}}
-> {{some'arbitrary'baz}}
{{$foo$bazbarfoo$error$}}
-> parse error, because {{$foo$}} is not terminated
Two options for now:
# Use pg-style string constants as an alternative for {{STRING_LITERAL}}
everywhere
# Use pg-style string constants as an alternative for {{STRING_LITERAL}} just
for UDF bodies
IMO pg-style string-literal-alternative only makes sense for UDFs so I'd prefer
option #2.
Need to implement that pg-style-syntax in cqlsh, too.
> 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
>
>
> 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)