mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +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,8 +472,13 @@ private:
|
||||
{
|
||||
/// Запоминаем все изменения в настройках, чтобы не потерять их при разрыве соединения.
|
||||
for (ASTSetQuery::Changes::const_iterator it = set_query->changes.begin(); it != set_query->changes.end(); ++it)
|
||||
{
|
||||
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);
|
||||
if (use_query)
|
||||
|
Loading…
Reference in New Issue
Block a user