Fixed build on Mac OS X [#CLICKHOUSE-2].

This commit is contained in:
Alexey Milovidov 2017-10-14 02:12:06 +03:00
parent f42c6014ce
commit 10392d5452
3 changed files with 9 additions and 9 deletions

View File

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

View File

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

View File

@ -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)