sqlite3 2.0.0-arm-linux-gnu → 2.0.1-arm-linux-gnu
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.so +0 -0
- data/lib/sqlite3/3.1/sqlite3_native.so +0 -0
- data/lib/sqlite3/3.2/sqlite3_native.so +0 -0
- data/lib/sqlite3/3.3/sqlite3_native.so +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: d87ce017ec48d80039c77b9ef47acbde38a0a03074dec97b210933fe5c4458c1
|
4
|
+
data.tar.gz: 9f2a324cc106e3cbf54718c0f9635ab110a3bd48d373506a511952b318a85e44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cc29ab096c7ee5d2753d738febcd3d671ae89d292fe7ede4b610f2d426aa9d3913749419d026ee4dcbfa5dc161502f8d0876c54e661c07d92c2ddf1b4036267
|
7
|
+
data.tar.gz: 8bac4be81b85e373f22816296976a07f1e05fc7a6f25d6967ee6d305928664bd104ab90e542b47d7ee0f197f0887b883f22d1367a6782204c0d7fcc3a84a3e8b
|
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: arm-linux-gnu
|
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
|