From 78e4b3d6fa28e279b5f65890084da3eace7c28d1 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Sat, 15 Jun 2019 08:12:47 +0100 Subject: [PATCH] Simplify SQL OPTION statement --- db/opt.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/opt.go b/db/opt.go index 46c7df65..bd6f9cd4 100644 --- a/db/opt.go +++ b/db/opt.go @@ -43,11 +43,11 @@ func (e *executor) executeOpt(ctx context.Context, stm *sql.OptStatement) (out [ } switch strings.ToUpper(stm.Name) { - case "PROCESS_FIELD_QUERIES": + case "FIELD_QUERIES": e.opts.fields = stm.What - case "TRIGGER_EVENT_QUERIES": + case "EVENT_QUERIES": e.opts.events = stm.What - case "TRIGGER_TABLE_QUERIES": + case "TABLE_QUERIES": e.opts.tables = stm.What case "IMPORT": switch stm.What {