mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
fix test and freebsd
This commit is contained in:
parent
80e948c8d2
commit
c834b94145
@ -67,6 +67,11 @@ if (OS_DARWIN)
|
||||
set(MONGOC_HAVE_RES_NDESTROY 1)
|
||||
endif()
|
||||
|
||||
add_definitions(-D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_DEFAULT_SOURCE)
|
||||
if(OS_FREEBSD)
|
||||
add_definitions(-D__BSD_VISIBLE=1)
|
||||
endif ()
|
||||
|
||||
set(MONGOC_ENABLE_COMPRESSION 1)
|
||||
set(MONGOC_ENABLE_COMPRESSION_ZLIB 0)
|
||||
set(MONGOC_ENABLE_COMPRESSION_SNAPPY 0)
|
||||
|
@ -6,11 +6,6 @@
|
||||
#include <Common/Base64.h>
|
||||
#include <DataTypes/FieldToDataType.h>
|
||||
|
||||
using bsoncxx::builder::basic::array;
|
||||
using bsoncxx::builder::basic::document;
|
||||
using bsoncxx::builder::basic::kvp;
|
||||
using bsoncxx::builder::basic::make_document;
|
||||
|
||||
namespace DB
|
||||
{
|
||||
|
||||
@ -23,6 +18,11 @@ extern const int NOT_IMPLEMENTED;
|
||||
namespace BSONCXXHelper
|
||||
{
|
||||
|
||||
using bsoncxx::builder::basic::array;
|
||||
using bsoncxx::builder::basic::document;
|
||||
using bsoncxx::builder::basic::kvp;
|
||||
using bsoncxx::builder::basic::make_document;
|
||||
|
||||
static bsoncxx::types::bson_value::value fieldAsBSONValue(const Field & field, const DataTypePtr & type)
|
||||
{
|
||||
switch (type->getTypeId())
|
||||
|
@ -9,6 +9,7 @@ generate_series
|
||||
input
|
||||
jdbc
|
||||
merge
|
||||
mongodb
|
||||
null
|
||||
numbers
|
||||
numbers_mt
|
||||
|
Loading…
Reference in New Issue
Block a user