sqlite3 2.0.0-arm-linux-musl → 2.0.1-arm-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: f064ddbb0499c9e52675ef3b98e02d9d8c015b0e42c8ef03172887ff8fcec7d9
4
- data.tar.gz: f7e932dea61a59b94e18f85a5838d1db1a741f43a3bdaa42d6ad86d335aad7d8
3
+ metadata.gz: 56dd66317b54559feaa9fc0ba833b7219a023009ae30a1937aefcdebf55c8d33
4
+ data.tar.gz: 79cd408075dee1e7ddc2c0d59e3477de718fa6b8278634335cfdeef4ee25f6e3
5
5
  SHA512:
6
- metadata.gz: b8d642c44b50c6a7c6a850e1a4b7b86036a0dec72d97f5e8db3ce2f5e5d28d7456bba2209b40aa2332348b3d09b24b73251a61e96109510cd730c00bef2af221
7
- data.tar.gz: c1c55187398f28f5c028e6aa5078ed24a1ac4151fef1d9c92afce84c2230eec140485d4b968a582550ad53e997c975d711a5911d0004c82d4ca8b2d9655baea4
6
+ metadata.gz: c81b94546bc6d115fe8b3a5fee17e6ebbe4b1ea004dd750c9eaddb6b3ca757529fa29a5615e32828a5a09571fc1532d7972714209bc9d01ed015813fc375ef01
7
+ data.tar.gz: 36aec61df52f24bf4a8fb0a79b09edf4b19d711dccf60a36ae8b8a798e0b8920026e4191997aa4790a78d1a659fbfb1676eb84e1d87c586775e7e3782a999476
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: arm-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