mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Merge pull request #27702 from ClickHouse/vitlibar-backquote-default-database-in-create-user
Backquote default database in CREATE USER
This commit is contained in:
commit
a2bc6f3714
@ -1,4 +1,5 @@
|
|||||||
#include <Parsers/ASTDatabaseOrNone.h>
|
#include <Parsers/ASTDatabaseOrNone.h>
|
||||||
|
#include <Common/quoteString.h>
|
||||||
#include <IO/Operators.h>
|
#include <IO/Operators.h>
|
||||||
|
|
||||||
namespace DB
|
namespace DB
|
||||||
@ -10,7 +11,7 @@ void ASTDatabaseOrNone::formatImpl(const FormatSettings & settings, FormatState
|
|||||||
settings.ostr << (settings.hilite ? IAST::hilite_keyword : "") << "NONE" << (settings.hilite ? IAST::hilite_none : "");
|
settings.ostr << (settings.hilite ? IAST::hilite_keyword : "") << "NONE" << (settings.hilite ? IAST::hilite_none : "");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
settings.ostr << database_name;
|
settings.ostr << backQuoteIfNeed(database_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user