tried to fix build fail & fixed codestyle

This commit is contained in:
Артем Стрельцов 2020-04-24 12:59:49 +03:00
parent aab2e8f9c1
commit 26a6353284
2 changed files with 4 additions and 3 deletions

View File

@ -383,10 +383,12 @@ void buildSourceConfiguration(AutoPtr<Document> doc, AutoPtr<Element> root, cons
outer_element->appendChild(source_element);
buildConfigurationFromFunctionWithKeyValueArguments(doc, source_element, source->elements->as<const ASTExpressionList>());
if (settings != nullptr) {
if (settings != nullptr)
{
AutoPtr<Element> settings_element(doc->createElement("settings"));
outer_element->appendChild(settings_element);
for (const auto & [name, value] : settings->changes) {
for (const auto & [name, value] : settings->changes)
{
AutoPtr<Element> setting_change_element(doc->createElement(name));
settings_element->appendChild(setting_change_element);
AutoPtr<Text> setting_value(doc->createTextNode(getFieldAsString(value)));

View File

@ -11,7 +11,6 @@
#include <Poco/String.h>
#include <Parsers/ParserSetQuery.h>
#include <Parsers/ParserSetQuery.cpp>
namespace DB