diff --git a/cql3/Cql.g b/cql3/Cql.g index d0fe9c902b..28de275dd7 100644 --- a/cql3/Cql.g +++ b/cql3/Cql.g @@ -967,14 +967,14 @@ cident returns [shared_ptr id] #endif ; -#if 0 // Identifiers that do not refer to columns or where the comparator is known to be text -ident returns [ColumnIdentifier id] - : t=IDENT { $id = new ColumnIdentifier($t.text, false); } - | t=QUOTED_NAME { $id = new ColumnIdentifier($t.text, true); } +ident returns [shared_ptr id] + : t=IDENT { $id = make_shared(sstring{$t.text}, false); } + | t=QUOTED_NAME { $id = make_shared(sstring{$t.text}, true); } +#if 0 | k=unreserved_keyword { $id = new ColumnIdentifier(k, false); } - ; #endif + ; // Keyspace & Column family names keyspaceName returns [sstring id]