mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 01:22:04 +00:00
dbms: bug-fix, profile is not storing for now [METR-8983]
This commit is contained in:
parent
521577dced
commit
5e4f412040
@ -94,6 +94,8 @@ private:
|
||||
|
||||
String home_path;
|
||||
|
||||
String current_profile;
|
||||
|
||||
/// Путь к файлу истории команд.
|
||||
String history_file;
|
||||
|
||||
@ -470,7 +472,12 @@ private:
|
||||
{
|
||||
/// Запоминаем все изменения в настройках, чтобы не потерять их при разрыве соединения.
|
||||
for (ASTSetQuery::Changes::const_iterator it = set_query->changes.begin(); it != set_query->changes.end(); ++it)
|
||||
context.setSetting(it->name, it->value);
|
||||
{
|
||||
if (it->name == "profile")
|
||||
current_profile = it->value;
|
||||
else
|
||||
context.setSetting(it->name, it->value);
|
||||
}
|
||||
}
|
||||
|
||||
const ASTUseQuery * use_query = dynamic_cast<const ASTUseQuery *>(&*parsed_query);
|
||||
|
Loading…
Reference in New Issue
Block a user