good morning!!!!

Skip to content
Snippets Groups Projects
Commit fc11191b authored by Garet Halliday's avatar Garet Halliday
Browse files

add vacuum keyword

parent 50efb116
No related branches found
No related tags found
No related merge requests found
...@@ -201,6 +201,8 @@ Keywords: ...@@ -201,6 +201,8 @@ Keywords:
- "USER" - "USER"
"USING": "USING":
- "USING" - "USING"
"VACUUM":
- "VACUUM"
"VARIADIC": "VARIADIC":
- "VARIADIC" - "VARIADIC"
"VERBOSE": "VERBOSE":
......
This diff is collapsed.
...@@ -117,6 +117,8 @@ const TestQuery7 = ` ...@@ -117,6 +117,8 @@ const TestQuery7 = `
*/ */
select concat('one');` select concat('one');`
const TestQuery8 = `truncate table pgbench_accounts, pgbench_branches, pgbench_history, pgbench_tellers`
func TestParser_Lex(t *testing.T) { func TestParser_Lex(t *testing.T) {
parser := NewParser() parser := NewParser()
lexed := parser.Lex(TestQuery1) lexed := parser.Lex(TestQuery1)
...@@ -161,6 +163,12 @@ func TestParser_Lex7(t *testing.T) { ...@@ -161,6 +163,12 @@ func TestParser_Lex7(t *testing.T) {
t.Errorf("%#v", lexed) t.Errorf("%#v", lexed)
} }
func TestParser_Lex8(t *testing.T) {
parser := NewParser()
lexed := parser.Lex(TestQuery8)
t.Errorf("%+v", lexed)
}
func BenchmarkParser_Lex(b *testing.B) { func BenchmarkParser_Lex(b *testing.B) {
b.ReportAllocs() b.ReportAllocs()
parser := NewParser() parser := NewParser()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment