diff --git a/src/Interpreters/Access/InterpreterCreateUserQuery.cpp b/src/Interpreters/Access/InterpreterCreateUserQuery.cpp index 44736c598b2..6546f014732 100644 --- a/src/Interpreters/Access/InterpreterCreateUserQuery.cpp +++ b/src/Interpreters/Access/InterpreterCreateUserQuery.cpp @@ -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(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 } diff --git a/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp b/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp index 9262ae66db4..887d008a8a9 100644 --- a/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp +++ b/src/Interpreters/Access/InterpreterShowCreateAccessEntityQuery.cpp @@ -37,6 +37,7 @@ namespace DB namespace ErrorCodes { extern const int NOT_IMPLEMENTED; + extern const int LOGICAL_ERROR; }