Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions names.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ func init() {
"rename", "replace", "revoke", "schema", "select", "set", "table", "to", "token", "truncate",
"unlogged", "update", "use", "using", "where", "with",
}
docstoreRsvd := []string{} // Temporarily removed, shamim 2020-05-04
// "and", "array", "cast", "contains", "data", "default", "distinct", "else",
// "false", "from", "group", "having", "interval", "limit", "metadata",
// "null", "offset", "or", "order", "partition_key", "partition", "row_key",
// "select", "tombstone", "true", "ts", "where",
// }
docstoreRsvd := []string{
"and", "array", "cast", "contains", "data", "default", "distinct", "else",
"false", "from", "group", "having", "interval", "limit", "metadata",
"null", "offset", "or", "order", "partition_key", "partition", "row_key",
"select", "tombstone", "true", "ts", "where",
}
reserved = make(map[string]struct{})
for _, n := range cassandraRsvd {
reserved[n] = struct{}{}
Expand Down
4 changes: 4 additions & 0 deletions names_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func TestIsValidName(t *testing.T) {
arg: "keyspace",
err: "reserved word",
},
{
arg: "partition_key",
err: "reserved word",
},
{
arg: "schema",
err: "reserved word",
Expand Down