sqlite3 2.0.0-arm64-darwin → 2.0.1-arm64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/ext/sqlite3/statement.c +1 -1
- data/lib/sqlite3/3.0/sqlite3_native.bundle +0 -0
- data/lib/sqlite3/3.1/sqlite3_native.bundle +0 -0
- data/lib/sqlite3/3.2/sqlite3_native.bundle +0 -0
- data/lib/sqlite3/3.3/sqlite3_native.bundle +0 -0
- data/lib/sqlite3/database.rb +3 -3
- data/lib/sqlite3/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ac98fe175d4bd3af5b0b7e071540fcda2c8fa3639f162e0c5956df69248ac08
|
4
|
+
data.tar.gz: 1177810db07adebcad20c61594c6c9b2d7479ea040c6ad25c1530002e6297410
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 563780f785476131b700b2e14113fef2756e63e2500a98a93c8244bb5910ba98d778abf34c98c3c170786d7f01fb52b26913c5907ef93f427bbae7014dce119e
|
7
|
+
data.tar.gz: c024e823b8cb5750d81b75bc9acbf45a82e34ec2bcbcd650c9712269d3731b83da09e5167b6e4023183bca2b1ea495ad666ed52c9b237012cdac29e99dd2dde4
|
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
|
data/ext/sqlite3/statement.c
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/sqlite3/database.rb
CHANGED
@@ -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 = [],
|
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 = []
|
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 = []
|
301
|
+
def query(sql, bind_vars = [])
|
302
302
|
result = prepare(sql).execute(bind_vars)
|
303
303
|
if block_given?
|
304
304
|
begin
|
data/lib/sqlite3/version.rb
CHANGED
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.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: arm64-darwin
|
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-
|
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
|