| 34 | } |
| 35 | |
| 36 | void InterpreterSetQuery::applySettingsFromQuery(const ASTPtr & ast, ContextMutablePtr setting_scontext) |
| 37 | { |
| 38 | auto changes = extractSettingsFromQuery(ast, setting_scontext); |
| 39 | auto new_settings = std::make_shared<ASTSetQuery>(); |
| 40 | new_settings->changes = std::move(changes); |
| 41 | InterpreterSetQuery(new_settings, setting_scontext).executeForCurrentContext(); |
| 42 | } |
| 43 | |
| 44 | static SettingsChanges extractSettingsFromSetQuery(const ASTPtr & ast) |
| 45 | { |
nothing calls this directly
no test coverage detected