duckdb 0.10.1.0 → 0.10.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2100acff5462ba1ae39b45795b53969911ff7e567007875098cebc536b6b3a1
4
- data.tar.gz: c99f55d6e6b9d535f75ed6759daaddb0ef39dc49ee1861cc1a1b7c18a914ea6d
3
+ metadata.gz: 3d937467c3c4f50946242d38224cfd0954d17a2a5ade0a3a5b72d7611a482e45
4
+ data.tar.gz: 69ca3178c0aaeab610ee663e0a1f47f3b96f685db84f4f4816be0d142a7276c4
5
5
  SHA512:
6
- metadata.gz: 112837a9b6df91ff4db6ebd489c1ad04fbacac7eea0d778d3c82ecc21ef1c0772cbca42123a99f39a170585fbbaf0cba5f904809cac2dd71a8e7fe2b474fe71b
7
- data.tar.gz: b6b2b47cff49a552e51d53988f03f73dd2163ec06877114a019bbaf155c2519417465e3fe208a15cdaf4953df6749661786f2ca627fb42488fbae7f466b77e97
6
+ metadata.gz: 39735bf906776ac331c4eb3daef1091dda9d70668216825b9eab4aafd82f7c667045677aba13f8438d7ff13213b3ee9c8dba8e806e20c9eec377a67ab4c1e741
7
+ data.tar.gz: b53af70bbeeea1eea3cf5f3c161faea38249dacbc1ee26b13416540818edac64632f07a3af67cd9c79457c2c5aad85abb4183f878c97c5cbdd48b87adbf0e5ed
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ # 0.10.1.1 - 2024-03-31
8
+ - fix error using binding with name (issue #612).
9
+ Thanks to pere73.
10
+
7
11
  # 0.10.1.0 - 2024-03-22
8
12
  - drop duckdb v0.8.x.
9
13
  - fix column type failures with duckdb v0.10.1.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- duckdb (0.10.1.0)
4
+ duckdb (0.10.1.1)
5
5
  bigdecimal (>= 3.1.4)
6
6
 
7
7
  GEM
@@ -6,12 +6,8 @@ static void deallocate(void *ctx);
6
6
  static VALUE allocate(VALUE klass);
7
7
  static size_t memsize(const void *p);
8
8
  static VALUE duckdb_connection_disconnect(VALUE self);
9
-
10
- #ifdef HAVE_DUCKDB_H_GE_V090
11
9
  static VALUE duckdb_connection_interrupt(VALUE self);
12
10
  static VALUE duckdb_connection_query_progress(VALUE self);
13
- #endif
14
-
15
11
  static VALUE duckdb_connection_connect(VALUE self, VALUE oDuckDBDatabase);
16
12
  static VALUE duckdb_connection_query_sql(VALUE self, VALUE str);
17
13
 
@@ -69,7 +65,6 @@ static VALUE duckdb_connection_disconnect(VALUE self) {
69
65
  return self;
70
66
  }
71
67
 
72
- #ifdef HAVE_DUCKDB_H_GE_V090
73
68
  /*
74
69
  * call-seq:
75
70
  * connection.interrupt -> nil
@@ -126,7 +121,6 @@ static VALUE duckdb_connection_query_progress(VALUE self) {
126
121
  return DBL2NUM(progress);
127
122
  #endif
128
123
  }
129
- #endif
130
124
 
131
125
  static VALUE duckdb_connection_connect(VALUE self, VALUE oDuckDBDatabase) {
132
126
  rubyDuckDBConnection *ctx;
@@ -169,10 +163,8 @@ void rbduckdb_init_duckdb_connection(void) {
169
163
  rb_define_alloc_func(cDuckDBConnection, allocate);
170
164
 
171
165
  rb_define_method(cDuckDBConnection, "disconnect", duckdb_connection_disconnect, 0);
172
- #ifdef HAVE_DUCKDB_H_GE_V090
173
166
  rb_define_method(cDuckDBConnection, "interrupt", duckdb_connection_interrupt, 0);
174
167
  rb_define_method(cDuckDBConnection, "query_progress", duckdb_connection_query_progress, 0);
175
- #endif
176
168
  rb_define_private_method(cDuckDBConnection, "_connect", duckdb_connection_connect, 1);
177
169
  rb_define_private_method(cDuckDBConnection, "query_sql", duckdb_connection_query_sql, 1);
178
170
  }
@@ -26,6 +26,7 @@ def check_duckdb_library(library, func, version)
26
26
  '/opt/homebrew/opt/duckdb/lib',
27
27
  '/opt/local/lib'
28
28
  )
29
+ have_func(func, 'duckdb.h')
29
30
  return if found
30
31
 
31
32
  library_name = duckdb_library_name(library)
@@ -51,9 +52,10 @@ end
51
52
  dir_config('duckdb')
52
53
 
53
54
  check_duckdb_header('duckdb.h', DUCKDB_REQUIRED_VERSION)
55
+ check_duckdb_library('duckdb', 'duckdb_bind_parameter_index', DUCKDB_REQUIRED_VERSION)
54
56
 
55
57
  # check duckdb >= 0.9.0
56
- check_duckdb_library('duckdb', 'duckdb_bind_parameter_index', DUCKDB_REQUIRED_VERSION)
58
+ have_func('duckdb_bind_parameter_index', 'duckdb.h')
57
59
 
58
60
  # check duckdb >= 0.10.0
59
61
  have_func('duckdb_appender_column_count', 'duckdb.h')
@@ -8,11 +8,7 @@ static size_t memsize(const void *p);
8
8
  static VALUE duckdb_pending_result_initialize(int argc, VALUE *args, VALUE self);
9
9
  static VALUE duckdb_pending_result_execute_task(VALUE self);
10
10
  static VALUE duckdb_pending_result_execute_pending(VALUE self);
11
-
12
- #ifdef HAVE_DUCKDB_H_GE_V090
13
11
  static VALUE duckdb_pending_result_execution_finished_p(VALUE self);
14
- #endif
15
-
16
12
  static VALUE duckdb_pending_result__state(VALUE self);
17
13
 
18
14
  static const rb_data_type_t pending_result_data_type = {
@@ -81,12 +77,10 @@ static VALUE duckdb_pending_result_execute_task(VALUE self) {
81
77
  return Qnil;
82
78
  }
83
79
 
84
- #ifdef HAVE_DUCKDB_H_GE_V090
85
80
  static VALUE duckdb_pending_result_execution_finished_p(VALUE self) {
86
81
  rubyDuckDBPendingResult *ctx = get_struct_pending_result(self);
87
82
  return duckdb_pending_execution_is_finished(ctx->state) ? Qtrue : Qfalse;
88
83
  }
89
- #endif
90
84
 
91
85
  /*
92
86
  * call-seq:
@@ -131,9 +125,6 @@ void rbduckdb_init_duckdb_pending_result(void) {
131
125
  rb_define_method(cDuckDBPendingResult, "initialize", duckdb_pending_result_initialize, -1);
132
126
  rb_define_method(cDuckDBPendingResult, "execute_task", duckdb_pending_result_execute_task, 0);
133
127
  rb_define_method(cDuckDBPendingResult, "execute_pending", duckdb_pending_result_execute_pending, 0);
134
-
135
- #ifdef HAVE_DUCKDB_H_GE_V090
136
128
  rb_define_method(cDuckDBPendingResult, "execution_finished?", duckdb_pending_result_execution_finished_p, 0);
137
- #endif
138
129
  rb_define_private_method(cDuckDBPendingResult, "_state", duckdb_pending_result__state, 0);
139
130
  }
@@ -10,12 +10,10 @@ static VALUE duckdb_prepared_statement_nparams(VALUE self);
10
10
  static VALUE duckdb_prepared_statement_execute(VALUE self);
11
11
  static idx_t check_index(VALUE vidx);
12
12
 
13
- #ifdef HAVE_DUCKDB_H_GE_V090
14
13
  static VALUE duckdb_prepared_statement_bind_parameter_index(VALUE self, VALUE name);
15
14
  #ifdef HAVE_DUCKDB_PARAMETER_NAME
16
15
  static VALUE duckdb_prepared_statement_parameter_name(VALUE self, VALUE vidx);
17
16
  #endif
18
- #endif
19
17
 
20
18
  static VALUE duckdb_prepared_statement_bind_bool(VALUE self, VALUE vidx, VALUE val);
21
19
  static VALUE duckdb_prepared_statement_bind_int8(VALUE self, VALUE vidx, VALUE val);
@@ -101,7 +99,6 @@ static idx_t check_index(VALUE vidx) {
101
99
  return idx;
102
100
  }
103
101
 
104
- #ifdef HAVE_DUCKDB_H_GE_V090
105
102
  static VALUE duckdb_prepared_statement_bind_parameter_index(VALUE self, VALUE name) {
106
103
  rubyDuckDBPreparedStatement *ctx;
107
104
  idx_t idx;
@@ -132,7 +129,6 @@ static VALUE duckdb_prepared_statement_parameter_name(VALUE self, VALUE vidx) {
132
129
  return vname;
133
130
  }
134
131
  #endif /* HAVE_DUCKDB_PARAMETER_NAME */
135
- #endif /* HAVE_DUCKDB_H_GE_V090 */
136
132
 
137
133
  static VALUE duckdb_prepared_statement_bind_bool(VALUE self, VALUE vidx, VALUE val) {
138
134
  rubyDuckDBPreparedStatement *ctx;
@@ -355,13 +351,12 @@ void rbduckdb_init_duckdb_prepared_statement(void) {
355
351
  rb_define_method(cDuckDBPreparedStatement, "initialize", duckdb_prepared_statement_initialize, 2);
356
352
  rb_define_method(cDuckDBPreparedStatement, "execute", duckdb_prepared_statement_execute, 0);
357
353
  rb_define_method(cDuckDBPreparedStatement, "nparams", duckdb_prepared_statement_nparams, 0);
358
-
359
- #ifdef HAVE_DUCKDB_H_GE_V090
360
354
  rb_define_method(cDuckDBPreparedStatement, "bind_parameter_index", duckdb_prepared_statement_bind_parameter_index, 1);
355
+
361
356
  #ifdef HAVE_DUCKDB_PARAMETER_NAME
362
357
  rb_define_method(cDuckDBPreparedStatement, "parameter_name", duckdb_prepared_statement_parameter_name, 1);
363
358
  #endif
364
- #endif
359
+
365
360
  rb_define_method(cDuckDBPreparedStatement, "bind_bool", duckdb_prepared_statement_bind_bool, 2);
366
361
  rb_define_method(cDuckDBPreparedStatement, "bind_int8", duckdb_prepared_statement_bind_int8, 2);
367
362
  rb_define_method(cDuckDBPreparedStatement, "bind_int16", duckdb_prepared_statement_bind_int16, 2);
@@ -4,10 +4,6 @@
4
4
  #include "ruby.h"
5
5
  #include <duckdb.h>
6
6
 
7
- #ifdef HAVE_DUCKDB_BIND_PARAMETER_INDEX
8
- #define HAVE_DUCKDB_H_GE_V090 1
9
- #endif
10
-
11
7
  #ifdef HAVE_DUCKDB_APPENDER_COLUMN_COUNT
12
8
  #define HAVE_DUCKDB_H_GE_V0_10_0 1
13
9
  #endif
@@ -3,5 +3,5 @@
3
3
  module DuckDB
4
4
  # The version string of ruby-duckdb.
5
5
  # Currently, ruby-duckdb is NOT semantic versioning.
6
- VERSION = '0.10.1.0'
6
+ VERSION = '0.10.1.1'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: duckdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1.0
4
+ version: 0.10.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaki Suketa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-22 00:00:00.000000000 Z
11
+ date: 2024-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bigdecimal