mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Fixed error code of test assertion in client
This commit is contained in:
parent
03cdacce43
commit
797b1b9cd5
@ -13,7 +13,7 @@ namespace DB
|
|||||||
|
|
||||||
namespace ErrorCodes
|
namespace ErrorCodes
|
||||||
{
|
{
|
||||||
extern const int LOGICAL_ERROR;
|
extern const int UNEXPECTED_ERROR_CODE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ public:
|
|||||||
std::cerr << "Success when error expected. It expects server error "
|
std::cerr << "Success when error expected. It expects server error "
|
||||||
<< server_error << ", client error " << client_error << "." << std::endl;
|
<< server_error << ", client error " << client_error << "." << std::endl;
|
||||||
got_exception = true;
|
got_exception = true;
|
||||||
last_exception = std::make_unique<Exception>("Success when error expected", ErrorCodes::LOGICAL_ERROR); /// return error to OS
|
last_exception = std::make_unique<Exception>("Success when error expected", ErrorCodes::UNEXPECTED_ERROR_CODE); /// return error to OS
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -476,6 +476,7 @@ namespace ErrorCodes
|
|||||||
extern const int CANNOT_CREATE_DATABASE = 501;
|
extern const int CANNOT_CREATE_DATABASE = 501;
|
||||||
extern const int CANNOT_SIGQUEUE = 502;
|
extern const int CANNOT_SIGQUEUE = 502;
|
||||||
extern const int AGGREGATE_FUNCTION_THROW = 503;
|
extern const int AGGREGATE_FUNCTION_THROW = 503;
|
||||||
|
extern const int UNEXPECTED_ERROR_CODE = 504;
|
||||||
|
|
||||||
extern const int KEEPER_EXCEPTION = 999;
|
extern const int KEEPER_EXCEPTION = 999;
|
||||||
extern const int POCO_EXCEPTION = 1000;
|
extern const int POCO_EXCEPTION = 1000;
|
||||||
|
Loading…
Reference in New Issue
Block a user