ext/duckdb/extconf.rb in duckdb-1.1.0.1 vs ext/duckdb/extconf.rb in duckdb-1.1.1.0

- old
+ new

@@ -1,10 +1,10 @@ # frozen_string_literal: true require 'mkmf' -DUCKDB_REQUIRED_VERSION = '0.10.0' +DUCKDB_REQUIRED_VERSION = '1.0.0' def check_duckdb_header(header, version) found = find_header( header, '/opt/homebrew/include', @@ -56,17 +56,21 @@ dir_config('duckdb') check_duckdb_header('duckdb.h', DUCKDB_REQUIRED_VERSION) check_duckdb_library('duckdb', 'duckdb_appender_column_count', DUCKDB_REQUIRED_VERSION) -# check duckdb >= 0.10.0 -have_func('duckdb_appender_column_count', 'duckdb.h') +# check duckdb >= 1.0.0 +have_func('duckdb_fetch_chunk', 'duckdb.h') # check duckdb >= 1.0.0 have_func('duckdb_fetch_chunk', 'duckdb.h') # check duckdb >= 1.1.0 have_func('duckdb_result_error_type', 'duckdb.h') + +# Building with enabled DUCKDB_API_NO_DEPRECATED is failed with DuckDB v1.1.0 only. +# DuckDB v1.1.1 is fixed this issue https://github.com/duckdb/duckdb/issues/13872. +have_const('DUCKDB_TYPE_SQLNULL', 'duckdb.h') $CFLAGS << ' -DDUCKDB_API_NO_DEPRECATED' if ENV['DUCKDB_API_NO_DEPRECATED'] create_makefile('duckdb/duckdb_native')