sqlite3 2.0.0-x86-linux-musl → 2.0.1-x86-linux-musl

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: cbd7de624369a0b4587cdaef55681abc09d652d1ae6c550fe146287426f304ca
4
- data.tar.gz: e1e68f189ec1520a701f380c9b12ff782a3376f8840971f7da8364325ec46992
3
+ metadata.gz: 9c9fad30fc9c073d93aea2434640a38f9549d26492e7997ccb185a9419e62b19
4
+ data.tar.gz: 7540bfb8bf94ab83f0092f46b6a8190489a61555de9084cbd835f9a1b2866f6d
5
5
  SHA512:
6
- metadata.gz: a9442412b3c14e32d87ccb1adaf781ecf4870be96095268a3f551661f72de4bc1794a6063bfc0d09601f5aebf11e673ba72220286c69fdbaa332533c116a3dd9
7
- data.tar.gz: 8352a165fec2359445d0b12713580abcc2ad38f41b0bfa52f241c91146bcdb81b1a908f9eb78bdaa285ed82dbebde302d99f64d78f7efe6505a8bb37be1da5d1
6
+ metadata.gz: 47fa6caace66c88b6b337a8ef43fadee1f32bd71e48bd86dde13084b422de4ab19cd959f79b4f2d1505fab395858d09233af8fbabc44c9f0c6caeca2ef6f9ea5
7
+ data.tar.gz: b7c9fa666dfb7ac4d61d7b19d2c6c75ce49ccdf8db65d05929aa36ef34d7c8c582da27454fe0428a45cc891f70f374f55666d25000b5c79f7fdfa023f4ecc853
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # sqlite3-ruby Changelog
2
2
 
3
+ ## 2.0.1 / 2024-04-20
4
+
5
+ ### Fixed
6
+
7
+ - Raise `ArgumentError` if `Database#execute`, `#execute_batch`, or `#query` are passed multiple bind parameters that are not in an Array. In v2.0.0 these methods would silently swallow additional arguments, and this change makes the failure explicit. See the CHANGELOG notes for v2.0.0 for examples on how to update your code. [#527] @flavorjones
8
+ - Fixed a regression in v2.0.0 that caused `Database#execute_batch` to raise an encoding exception when passed some non-ascii strings. As a result of this fix, `Database#prepare` now ensures the "remainder" string will always be encoded as UTF-8. [#524] @flavorjones
9
+
10
+
3
11
  ## 2.0.0 / 2024-04-17
4
12
 
5
13
  This is a major release which contains some breaking changes, primarily the removal of
@@ -72,7 +72,7 @@ prepare(VALUE self, VALUE db, VALUE sql)
72
72
  CHECK(db_ctx->db, status);
73
73
  timespecclear(&db_ctx->stmt_deadline);
74
74
 
75
- return rb_str_new2(tail);
75
+ return rb_utf8_str_new_cstr(tail);
76
76
  }
77
77
 
78
78
  /* call-seq: stmt.close
Binary file
Binary file
Binary file
Binary file
@@ -194,7 +194,7 @@ module SQLite3
194
194
  #
195
195
  # See also #execute2, #query, and #execute_batch for additional ways of
196
196
  # executing statements.
197
- def execute sql, bind_vars = [], *args, &block
197
+ def execute sql, bind_vars = [], &block
198
198
  prepare(sql) do |stmt|
199
199
  stmt.bind_params(bind_vars)
200
200
  stmt = build_result_set stmt
@@ -243,7 +243,7 @@ module SQLite3
243
243
  #
244
244
  # See also #execute_batch2 for additional ways of
245
245
  # executing statements.
246
- def execute_batch(sql, bind_vars = [], *args)
246
+ def execute_batch(sql, bind_vars = [])
247
247
  sql = sql.strip
248
248
  result = nil
249
249
  until sql.empty?
@@ -298,7 +298,7 @@ module SQLite3
298
298
  # returned, or you could have problems with locks on the table. If called
299
299
  # with a block, +close+ will be invoked implicitly when the block
300
300
  # terminates.
301
- def query(sql, bind_vars = [], *args)
301
+ def query(sql, bind_vars = [])
302
302
  result = prepare(sql).execute(bind_vars)
303
303
  if block_given?
304
304
  begin
@@ -1,3 +1,3 @@
1
1
  module SQLite3
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlite3
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: x86-linux-musl
6
6
  authors:
7
7
  - Jamis Buck
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2024-04-17 00:00:00.000000000 Z
14
+ date: 2024-04-20 00:00:00.000000000 Z
15
15
  dependencies: []
16
16
  description: |
17
17
  Ruby library to interface with the SQLite3 database engine (http://www.sqlite.org). Precompiled