mirror of https://github.com/apache/cassandra
cqlsh cql3 syntax support for double-quoted names
i.e., at least don't throw an error on seeing "" in cql text
This commit is contained in:
parent
f119da0e87
commit
ab536050df
|
|
@ -209,6 +209,7 @@ syntax_rules = r'''
|
|||
JUNK ::= /([ \t\r\f\v]+|(--|[/][/])[^\n\r]*([\n\r]|$)|[/][*].*?[*][/])/ ;
|
||||
|
||||
<stringLiteral> ::= /'([^']|'')*'/ ;
|
||||
<dquoteLiteral> ::= /"([^"]|"")*"/ ;
|
||||
<float> ::= /-?[0-9]+\.[0-9]+/ ;
|
||||
<integer> ::= /-?[0-9]+/ ;
|
||||
<uuid> ::= /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/ ;
|
||||
|
|
@ -230,6 +231,7 @@ JUNK ::= /([ \t\r\f\v]+|(--|[/][/])[^\n\r]*([\n\r]|$)|[/][*].*?[*][/])/ ;
|
|||
;
|
||||
<name> ::= <identifier>
|
||||
| <stringLiteral>
|
||||
| <dquoteLiteral>
|
||||
| <integer>
|
||||
;
|
||||
<term> ::= <stringLiteral>
|
||||
|
|
|
|||
Loading…
Reference in New Issue