Elffuss BraidHub

kikocis/java-driver public

Document where reserved keyword list comes from.
Changeset260cb65fad0b7a1f009a1b24e2254f7e078fe7684dff115424030263456456f3
Authorolim7t <omichallat+github@gmail.com> · 2016-04-04 17:38 +02:00
Committerolim7t <omichallat+github@gmail.com> · 2016-04-04 17:38 +02:00
Parents28e0c1f8dd75

Browse the files at this changeset

1 file changed

modified driver-core/src/main/java/com/datastax/driver/core/Metadata.java +1 −0
@@ -48,6 +48,7 @@
4848 private static final Pattern alphanumeric = Pattern.compile("\\w+"); // this includes _
4949 private static final Pattern lowercaseAlphanumeric = Pattern.compile("[a-z][a-z0-9_]*");
5050
51+ // See https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#appendixA
5152 private static final Set<String> RESERVED_KEYWORDS = ImmutableSet.of(
5253 "add", "allow", "alter", "and", "any", "apply", "asc", "authorize", "batch", "begin", "by",
5354 "columnfamily", "create", "delete", "desc", "drop", "each_quorum", "from", "grant", "in",