Allow upper or lower case in OPTION statements

This commit is contained in:
Tobie Morgan Hitchcock 2022-01-30 18:59:12 +00:00
parent 6a5faf852d
commit da811b29bd

View file

@ -154,7 +154,7 @@ impl<'a> Executor<'a> {
let res = match stm { let res = match stm {
// Specify runtime options // Specify runtime options
Statement::Option(stm) => { Statement::Option(stm) => {
match &stm.name.name[..] { match &stm.name.name.to_uppercase()[..] {
"FIELD_QUERIES" => opt = opt.fields(stm.what), "FIELD_QUERIES" => opt = opt.fields(stm.what),
"EVENT_QUERIES" => opt = opt.events(stm.what), "EVENT_QUERIES" => opt = opt.events(stm.what),
"TABLE_QUERIES" => opt = opt.tables(stm.what), "TABLE_QUERIES" => opt = opt.tables(stm.what),