diff --git a/sql/sql_test.go b/sql/sql_test.go index 75013427..a7e41582 100644 --- a/sql/sql_test.go +++ b/sql/sql_test.go @@ -159,7 +159,7 @@ func Test_Parse_Queries_Use(t *testing.T) { var tests = []tester{ { sql: `USE`, - err: "Found `` but expected `NAMESPACE, DATABASE, CIPHERKEY`", + err: "Found `` but expected `NAMESPACE, DATABASE`", }, { sql: `USE NAMESPACE`, @@ -241,42 +241,6 @@ func Test_Parse_Queries_Use(t *testing.T) { DB: "", }}}, }, - { - sql: `USE CIPHERKEY`, - err: "Found `` but expected `16, 24, or 32 bit cipher key`", - }, - { - sql: `USE CIPHERKEY 1hg7dbrma8ghe5473kghvie64jgi3ph4`, - res: &Query{Statements: []Statement{&UseStatement{ - CK: "1hg7dbrma8ghe5473kghvie64jgi3ph4", - }}}, - }, - { - sql: `USE CIPHERKEY "1hg7dbrma8ghe5473kghvie64jgi3ph4"`, - res: &Query{Statements: []Statement{&UseStatement{ - CK: "1hg7dbrma8ghe5473kghvie64jgi3ph4", - }}}, - }, - { - sql: `USE CIPHERKEY 1`, - err: "Found `1` but expected `16, 24, or 32 bit cipher key`", - }, - { - sql: `USE CIPHERKEY 1.3000`, - err: "Found `1.3000` but expected `16, 24, or 32 bit cipher key`", - }, - { - sql: `USE CIPHERKEY 123.123.123.123`, - err: "Found `123.123.123.123` but expected `16, 24, or 32 bit cipher key`", - }, - { - sql: `USE CIPHERKEY {"some":"thing"}`, - err: "Found `{\"some\":\"thing\"}` but expected `16, 24, or 32 bit cipher key`", - }, - { - sql: `USE CIPHERKEY name something`, - err: "Found `name` but expected `16, 24, or 32 bit cipher key`", - }, } for _, test := range tests { diff --git a/sql/token.go b/sql/token.go index 171ea514..1be693ad 100644 --- a/sql/token.go +++ b/sql/token.go @@ -96,7 +96,6 @@ const ( BEFORE BOTH BY - CIPHERKEY CODE COLUMNS CONTENT @@ -226,7 +225,6 @@ var tokens = [...]string{ BEFORE: "BEFORE", BOTH: "BOTH", BY: "BY", - CIPHERKEY: "CIPHERKEY", CODE: "CODE", COLUMNS: "COLUMNS", CONTENT: "CONTENT",