Simplify SQL OPTION statement

This commit is contained in:
Tobie Morgan Hitchcock 2019-06-15 08:12:47 +01:00
parent 412ba4fc45
commit 78e4b3d6fa

View file

@ -43,11 +43,11 @@ func (e *executor) executeOpt(ctx context.Context, stm *sql.OptStatement) (out [
} }
switch strings.ToUpper(stm.Name) { switch strings.ToUpper(stm.Name) {
case "PROCESS_FIELD_QUERIES": case "FIELD_QUERIES":
e.opts.fields = stm.What e.opts.fields = stm.What
case "TRIGGER_EVENT_QUERIES": case "EVENT_QUERIES":
e.opts.events = stm.What e.opts.events = stm.What
case "TRIGGER_TABLE_QUERIES": case "TABLE_QUERIES":
e.opts.tables = stm.What e.opts.tables = stm.What
case "IMPORT": case "IMPORT":
switch stm.What { switch stm.What {