Skip to content

Commit

Permalink
check duckdb version 0.9.0 in extconf.rb (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
suketa authored Sep 29, 2023
1 parent 34d5a6e commit 50cbd41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
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

0 comments on commit 50cbd41

Please sign in to comment.