mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Use the appropriate Int64 variant.
Our Int64 is int64_t, and Poco's is long long, which are distinct for the purposes of template specialization on MacOS.
This commit is contained in:
parent
10019b4cc6
commit
2b0b7efa8c
@ -96,7 +96,10 @@ namespace DB
|
||||
if (db_index != 0)
|
||||
{
|
||||
RedisCommand command("SELECT");
|
||||
command << static_cast<Int64>(db_index);
|
||||
// Use poco's Int64, because it is defined as long long, and on
|
||||
// MacOS, for the purposes of template instantiation, this type is
|
||||
// distinct from int64_t, which is our Int64.
|
||||
command << static_cast<Poco::Int64>(db_index);
|
||||
String reply = client->execute<String>(command);
|
||||
if (reply != "+OK\r\n")
|
||||
throw Exception{"Selecting database with index " + DB::toString(db_index)
|
||||
|
Loading…
Reference in New Issue
Block a user