Build fix

This commit is contained in:
comunodi 2019-04-14 20:44:44 +03:00
parent f3ead9fe5b
commit 80827b5a9f

View File

@ -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};