mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Fixed build on Mac OS X [#CLICKHOUSE-2].
This commit is contained in:
parent
f42c6014ce
commit
10392d5452
@ -82,13 +82,13 @@ public:
|
||||
|
||||
ElementType getType() const;
|
||||
|
||||
bool isObject() const { return getType() == TYPE_OBJECT; };
|
||||
bool isArray() const { return getType() == TYPE_ARRAY; };
|
||||
bool isNumber() const { return getType() == TYPE_NUMBER; };
|
||||
bool isString() const { return getType() == TYPE_STRING; };
|
||||
bool isBool() const { return getType() == TYPE_BOOL; };
|
||||
bool isNull() const { return getType() == TYPE_NULL; };
|
||||
bool isNameValuePair() const { return getType() == TYPE_NAME_VALUE_PAIR; };
|
||||
bool isObject() const { return getType() == TYPE_OBJECT; };
|
||||
bool isArray() const { return getType() == TYPE_ARRAY; };
|
||||
bool isNumber() const { return getType() == TYPE_NUMBER; };
|
||||
bool isString() const { return getType() == TYPE_STRING; };
|
||||
bool isBool() const { return getType() == TYPE_BOOL; };
|
||||
bool isNull() const { return getType() == TYPE_NULL; };
|
||||
bool isNameValuePair() const { return getType() == TYPE_NAME_VALUE_PAIR; };
|
||||
|
||||
/// Количество элементов в массиве или объекте; если элемент - не массив или объект, то исключение.
|
||||
size_t size() const;
|
||||
|
@ -456,7 +456,7 @@ JSON JSON::operator[] (size_t n) const
|
||||
++it, ++i;
|
||||
|
||||
if (i != n)
|
||||
throw JSONException("JSON: array index " + Poco::NumberFormatter::format(n) + " out of bounds.");
|
||||
throw JSONException("JSON: array index " + Poco::NumberFormatter::format(Poco::UInt64(n)) + " out of bounds.");
|
||||
|
||||
return *it;
|
||||
}
|
||||
|
@ -108,7 +108,7 @@ PoolWithFailover::Entry PoolWithFailover::Get()
|
||||
}
|
||||
}
|
||||
|
||||
app.logger().error("Connection to all replicas failed " + Poco::NumberFormatter::format(try_no + 1) + " times");
|
||||
app.logger().error("Connection to all replicas failed " + Poco::NumberFormatter::format(Poco::UInt64(try_no + 1)) + " times");
|
||||
}
|
||||
|
||||
if (full_pool)
|
||||
|
Loading…
Reference in New Issue
Block a user