Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check duckdb version 0.9.0 in extconf.rb #532

Merged
merged 1 commit into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ext/duckdb/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ def check_duckdb_library(func, version)
# check duckdb >= 0.8.0
have_func('duckdb_string_is_inlined', 'duckdb.h')

# check duckdb >= 0.9.0
have_func('duckdb_bind_parameter_index', 'duckdb.h')

create_makefile('duckdb/duckdb_native')
4 changes: 4 additions & 0 deletions ext/duckdb/ruby-duckdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
#define HAVE_DUCKDB_H_GE_V080 1
#endif

#ifdef HAVE_DUCKDB_BIND_PARAMETER_INDEX
#define HAVE_DUCKDB_H_GE_V090 1
#endif

#include "./error.h"
#include "./database.h"
#include "./connection.h"
Expand Down