mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
fix astcreateuserquery clone
This commit is contained in:
parent
55da169fe7
commit
08c9cc18d6
@ -172,6 +172,7 @@ ASTPtr ASTCreateUserQuery::clone() const
|
||||
{
|
||||
auto res = std::make_shared<ASTCreateUserQuery>(*this);
|
||||
res->children.clear();
|
||||
res->auth_data.clear();
|
||||
|
||||
if (names)
|
||||
res->names = std::static_pointer_cast<ASTUserNamesWithHost>(names->clone());
|
||||
@ -188,6 +189,7 @@ ASTPtr ASTCreateUserQuery::clone() const
|
||||
if (settings)
|
||||
res->settings = std::static_pointer_cast<ASTSettingsProfileElements>(settings->clone());
|
||||
|
||||
// this is weird.
|
||||
if (!auth_data.empty())
|
||||
{
|
||||
for (const auto & authentication_method : auth_data)
|
||||
|
Loading…
Reference in New Issue
Block a user