kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 260cb65fad0b7a1f009a1b24e2254f7e078fe7684dff115424030263456456f3 |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2016-04-04 17:38 +02:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2016-04-04 17:38 +02:00 |
| Parents | 28e0c1f8dd75 |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/Metadata.java +1 −0
| @@ -48,6 +48,7 @@ | ||
| 48 | 48 | private static final Pattern alphanumeric = Pattern.compile("\\w+"); // this includes _ |
| 49 | 49 | private static final Pattern lowercaseAlphanumeric = Pattern.compile("[a-z][a-z0-9_]*"); |
| 50 | 50 | |
| 51 | + // See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#appendixA | |
| 51 | 52 | private static final Set<String> RESERVED_KEYWORDS = ImmutableSet.of( |
| 52 | 53 | "add", "allow", "alter", "and", "any", "apply", "asc", "authorize", "batch", "begin", "by", |
| 53 | 54 | "columnfamily", "create", "delete", "desc", "drop", "each_quorum", "from", "grant", "in", |