File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,13 +83,13 @@ void Config::reloadConfig() {
8383
8484 for (auto & it : config[" statements" ]) {
8585 r_string stmtName = it.first .as <r_string>();
86- if (it.IsMap ()) {
87- if (!it[" query" ]) throw std::runtime_error ((" statement " +stmtName+" has no 'query' entry" ).c_str ());
86+ if (it.second . IsMap ()) {
87+ if (!it. second [" query" ]) throw std::runtime_error ((" statement " +stmtName+" has no 'query' entry" ).c_str ());
8888
8989 statements[stmtName] = {
90- it[" query" ].as <r_string>(),
91- it[" parseTinyintAsBool" ].as <bool >(false ),
92- dateTypeFromString (config[ " global " ] [" parseDateType" ].as <r_string>(" string" sv))
90+ it. second [" query" ].as <r_string>(),
91+ it. second [" parseTinyintAsBool" ].as <bool >(false ),
92+ dateTypeFromString (it. second [" parseDateType" ].as <r_string>(" string" sv))
9393 };
9494 } else {
9595 statements[stmtName] = {it.second .as <r_string>()};
You can’t perform that action at this time.
0 commit comments