You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ee...@apache.org on 2012/04/06 17:41:42 UTC

[3/4] git commit: cqlsh cql3 syntax support for double-quoted names

cqlsh cql3 syntax support for double-quoted names

i.e., at least don't throw an error on seeing "" in cql text


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/875b492f
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/875b492f
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/875b492f

Branch: refs/heads/trunk
Commit: 875b492f6b67d7c9e7a7069289545437e82a26b9
Parents: b2de5f1
Author: paul cannon <pa...@datastax.com>
Authored: Tue Apr 3 13:56:14 2012 -0500
Committer: Eric Evans <ee...@apache.org>
Committed: Fri Apr 6 10:37:09 2012 -0500

----------------------------------------------------------------------
 pylib/cqlshlib/cqlhandling.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/875b492f/pylib/cqlshlib/cqlhandling.py
----------------------------------------------------------------------
diff --git a/pylib/cqlshlib/cqlhandling.py b/pylib/cqlshlib/cqlhandling.py
index d494a91..3907162 100644
--- a/pylib/cqlshlib/cqlhandling.py
+++ b/pylib/cqlshlib/cqlhandling.py
@@ -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>