fix test and freebsd

This commit is contained in:
Kirill Nikiforov 2024-08-05 19:58:46 +03:00
parent 80e948c8d2
commit c834b94145
No known key found for this signature in database
3 changed files with 11 additions and 5 deletions

View File

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

View File

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

View File

@ -9,6 +9,7 @@ generate_series
input
jdbc
merge
mongodb
null
numbers
numbers_mt