mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Fix style
This commit is contained in:
parent
6f57a952d9
commit
def8611d2c
@ -28,6 +28,7 @@ namespace ErrorCodes
|
||||
extern const int BAD_ARGUMENTS;
|
||||
extern const int SUPPORT_IS_DISABLED;
|
||||
extern const int OPENSSL_ERROR;
|
||||
extern const int LOGICAL_ERROR;
|
||||
}
|
||||
namespace
|
||||
{
|
||||
@ -39,7 +40,7 @@ namespace
|
||||
if (query.expect_password)
|
||||
{
|
||||
if (!context)
|
||||
throw Exception(DB::ErrorCodes::LOGICAL_ERROR, "Cannot get necessary parameters without context");
|
||||
throw Exception(ErrorCodes::LOGICAL_ERROR, "Cannot get necessary parameters without context");
|
||||
|
||||
String value = checkAndGetLiteralArgument<String>(query.children[0], "password");
|
||||
|
||||
@ -83,8 +84,8 @@ namespace
|
||||
value.append(salt);
|
||||
auth_data.setSalt(salt);
|
||||
#else
|
||||
throw DB::Exception(DB::ErrorCodes::SUPPORT_IS_DISABLED,
|
||||
"SHA256 passwords support is disabled, because ClickHouse was built without SSL library");
|
||||
throw Exception(ErrorCodes::SUPPORT_IS_DISABLED,
|
||||
"SHA256 passwords support is disabled, because ClickHouse was built without SSL library");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -37,6 +37,7 @@ namespace DB
|
||||
namespace ErrorCodes
|
||||
{
|
||||
extern const int NOT_IMPLEMENTED;
|
||||
extern const int LOGICAL_ERROR;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user