mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-24 18:50:49 +00:00
Build fix
This commit is contained in:
parent
f3ead9fe5b
commit
80827b5a9f
@ -81,8 +81,8 @@ namespace DB
|
||||
if (db_index != 0)
|
||||
{
|
||||
Poco::Redis::Array command;
|
||||
command << "SELECT" << db_index;
|
||||
String reply = client->execute<String>(command);
|
||||
command << "SELECT" << static_cast<Int64>(db_index);
|
||||
std::string reply = client->execute<std::string>(command);
|
||||
if (reply != "+OK\r\n")
|
||||
throw Exception{"Selecting db with index " + DB::toString(db_index) + " failed with reason " + reply,
|
||||
ErrorCodes::SELECT_DB_FAILURE};
|
||||
|
Loading…
Reference in New Issue
Block a user