sqlite3 1.4.2 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/{API_CHANGES.rdoc → API_CHANGES.md} +3 -4
  3. data/CHANGELOG.md +641 -0
  4. data/CONTRIBUTING.md +34 -0
  5. data/FAQ.md +431 -0
  6. data/Gemfile +7 -14
  7. data/INSTALLATION.md +259 -0
  8. data/LICENSE-DEPENDENCIES +20 -0
  9. data/README.md +110 -0
  10. data/dependencies.yml +14 -0
  11. data/ext/sqlite3/aggregator.c +10 -10
  12. data/ext/sqlite3/backup.c +26 -13
  13. data/ext/sqlite3/database.c +89 -38
  14. data/ext/sqlite3/database.h +2 -0
  15. data/ext/sqlite3/extconf.rb +269 -84
  16. data/ext/sqlite3/sqlite3.c +5 -2
  17. data/ext/sqlite3/sqlite3_ruby.h +5 -2
  18. data/ext/sqlite3/statement.c +37 -28
  19. data/lib/sqlite3/constants.rb +1 -1
  20. data/lib/sqlite3/database.rb +55 -30
  21. data/lib/sqlite3/pragmas.rb +13 -6
  22. data/lib/sqlite3/resultset.rb +4 -12
  23. data/lib/sqlite3/statement.rb +2 -1
  24. data/lib/sqlite3/translator.rb +2 -3
  25. data/lib/sqlite3/version.rb +3 -5
  26. data/ports/archives/sqlite-autoconf-3450100.tar.gz +0 -0
  27. data/test/helper.rb +9 -0
  28. data/test/test_database.rb +182 -17
  29. data/test/test_deprecated.rb +10 -5
  30. data/test/test_encoding.rb +10 -0
  31. data/test/test_integration_resultset.rb +2 -2
  32. data/test/test_integration_statement.rb +2 -2
  33. data/test/test_pragmas.rb +22 -0
  34. data/test/test_result_set.rb +18 -8
  35. data/test/test_sqlite3.rb +9 -0
  36. data/test/test_statement.rb +28 -1
  37. data/test/test_statement_execute.rb +4 -0
  38. metadata +36 -144
  39. data/.travis.yml +0 -33
  40. data/CHANGELOG.rdoc +0 -318
  41. data/Manifest.txt +0 -60
  42. data/README.rdoc +0 -118
  43. data/Rakefile +0 -8
  44. data/appveyor.yml +0 -36
  45. data/faq/faq.rb +0 -145
  46. data/faq/faq.yml +0 -426
  47. data/rakelib/faq.rake +0 -9
  48. data/rakelib/gem.rake +0 -40
  49. data/rakelib/native.rake +0 -56
  50. data/rakelib/vendor_sqlite3.rake +0 -97
  51. data/setup.rb +0 -1333
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff35addc187325a243e752d17c9f38ac54ea4a5b8a48c4809c4dd91692f1f94d
4
- data.tar.gz: c9c22fc4b4a091197b12ae09c13d199c2fcd5f8c836944bf04f50be919d32f8a
3
+ metadata.gz: 61211d77bc9b7b5dbba6da23db9ecba753b6e5e5eed189f1359dd7e2af0c6117
4
+ data.tar.gz: f5e824392f79415edc4675353e93f74a9802916e64b56a66b2c180092e101c7f
5
5
  SHA512:
6
- metadata.gz: 68c1c1233ff73049b7c1ff1e0bbeec883bc90228182bd090564ff4df2b9f37fe92e4e9333a374306ba7fcdd10b0b2f914c4116dff0c34ef5c2e964f9342de986
7
- data.tar.gz: 698263b49e7efa9a3c06220d71e617657fdf31b8e8097a9e2278b5ca3a5fbbb3468b2492fa51670345a3756b4760169d2b79681fac523144166f99253f1e40f3
6
+ metadata.gz: 3ccd5d9f86df6db7c337fb13ea68c596c68e22f69010c5a71828d934e3ef419e9f696edcee675dad23c8138dda4fa083d26de18289f642284b090ee4fa69004c
7
+ data.tar.gz: 347e370508e709de8f125e312e7f55fd409589d4f60b43b6c27a6c74ffb5f62945824b5ba87db8b8207f5a16d44be13c1ddeb026374e4ebcd5891daa006523a5
@@ -1,4 +1,4 @@
1
- = API Changes
1
+ # API Changes
2
2
 
3
3
  * SQLite3::Database#execute only accepts an array for bind parameters.
4
4
 
@@ -8,7 +8,7 @@
8
8
  sometimes important change in behavior.
9
9
 
10
10
  83882d2208ed189361617d5ab8532a325aaf729d
11
-
11
+
12
12
  * SQLite3::Database#trace now takes either a block or an object that responds
13
13
  to "call". The previous implementation passed around a VALUE that was cast
14
14
  to a void *. This is dangerous because the value could get garbage collected
@@ -30,7 +30,7 @@
30
30
  * test/test_tc_database.rb was removed because we no longer use the Driver
31
31
  design pattern.
32
32
 
33
- = Garbage Collection Strategy
33
+ # Garbage Collection Strategy
34
34
 
35
35
  All statements keep pointers back to their respective database connections.
36
36
  The @connection instance variable on the Statement handle keeps the database
@@ -47,4 +47,3 @@ collected. So, it is possible that a connection and a statement are up for
47
47
  garbage collection. If the database connection were to be free'd before the
48
48
  statement, then boom. Instead we'll be conservative and free unclosed
49
49
  statements when the connection is terminated.
50
-
data/CHANGELOG.md ADDED
@@ -0,0 +1,641 @@
1
+ # sqlite3-ruby Changelog
2
+
3
+ ## 1.7.2 / unreleased
4
+
5
+ ### Dependencies
6
+
7
+ - Vendored sqlite is updated to [v3.45.1](https://www.sqlite.org/releaselog/3_45_1.html). @flavorjones
8
+
9
+
10
+ ## 1.7.1 / 2024-01-24
11
+
12
+ ### Dependencies
13
+
14
+ - Vendored sqlite is updated to [v3.45.0](https://www.sqlite.org/releaselog/3_45_0.html). @flavorjones
15
+
16
+
17
+ ## 1.7.0 / 2023-12-27
18
+
19
+ ### Ruby
20
+
21
+ This release introduces native gem support for Ruby 3.3.
22
+
23
+ This release ends native gem support for Ruby 2.7, for which [upstream support ended 2023-03-31](https://www.ruby-lang.org/en/downloads/branches/). Ruby 2.7 is still generally supported, but will not be shipped in the native gems.
24
+
25
+ This release ends support for Ruby 1.9.3, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, and 2.6.
26
+
27
+ ### Improved
28
+
29
+ - SQLite3::Statement, Database, and Backup objects have been converted to use the TypedData API. See https://bugs.ruby-lang.org/issues/19998 for more context. [#432] @casperisfine
30
+
31
+
32
+ ## 1.6.9 / 2023-11-26
33
+
34
+ ### Dependencies
35
+
36
+ - Vendored sqlite is update to [v3.44.2](https://sqlite.org/releaselog/3_44_2.html). @flavorjones
37
+
38
+ ### Added
39
+
40
+ - `Database.new` now accepts a `:default_transaction_mode` option (defaulting to `:deferred`), and `Database#transaction` no longer requires a transaction mode to be specified. This should allow higher-level adapters to more easily choose a transaction mode for a database connection. [#426] @masamitsu-murase
41
+
42
+
43
+ ## 1.6.8 / 2023-11-01
44
+
45
+ ### Dependencies
46
+
47
+ - Vendored sqlite is updated to [v3.44.0](https://sqlite.org/releaselog/3_44_0.html). @flavorjones
48
+ - rake-compiler-dock updated to v1.3.1 for precompiled native gems. @flavorjones
49
+
50
+
51
+ ### Added
52
+
53
+ - `SQLite3::Database.open` now returns the block result. Previously this returned the Database object. [#415] @toy
54
+ - Documentation improvement in `lib/sqlite3/database.rb`. [#421] @szTheory
55
+
56
+
57
+ ## 1.6.7 / 2023-10-10
58
+
59
+ ### Dependencies
60
+
61
+ Vendored sqlite is updated to [v3.43.2](https://sqlite.org/releaselog/3_43_2.html).
62
+
63
+ Upstream release notes:
64
+
65
+ > - Fix a couple of obscure UAF errors and an obscure memory leak.
66
+ > - Omit the use of the sprintf() function from the standard library in the [CLI](https://sqlite.org/cli.html), as this now generates warnings on some platforms.
67
+ > - Avoid conversion of a double into unsigned long long integer, as some platforms do not do such conversions correctly.
68
+
69
+
70
+ ### Added
71
+
72
+ * Compile packaged sqlite3 with additional flags to explicitly enable FTS5, and set synchronous mode to normal when in WAL mode. [#408] (@flavorjones)
73
+
74
+
75
+ ## 1.6.6 / 2023-09-12
76
+
77
+ ### Dependencies
78
+
79
+ Vendored sqlite is updated to [v3.43.1](https://sqlite.org/releaselog/3_43_1.html).
80
+
81
+ Upstream release notes:
82
+
83
+ > - Fix a regression in the way that the [sum()](https://sqlite.org/lang_aggfunc.html#sumunc), [avg()](https://sqlite.org/lang_aggfunc.html#avg), and [total()](https://sqlite.org/lang_aggfunc.html#sumunc) aggregate functions handle infinities.
84
+ > - Fix a bug in the [json_array_length()](https://sqlite.org/json1.html#jarraylen) function that occurs when the argument comes directly from [json_remove()](https://sqlite.org/json1.html#jrm).
85
+ > - Fix the omit-unused-subquery-columns optimization (introduced in in version 3.42.0) so that it works correctly if the subquery is a compound where one arm is DISTINCT and the other is not.
86
+ > - Other minor fixes.
87
+
88
+
89
+ ## 1.6.5 / 2023-09-08
90
+
91
+ ### Packaging
92
+
93
+ * Allow setting compiler flags for the sqlite library via a `--with-sqlite-cflags` argument to `extconf.rb`. See [`INSTALLATION.md`](https://github.com/sparklemotion/sqlite3-ruby/blob/master/INSTALLATION.md#controlling-compilation-flags-for-sqlite) for more information. [#401, #402] (@flavorjones)
94
+
95
+
96
+ ## 1.6.4 / 2023-08-26
97
+
98
+ ### Dependencies
99
+
100
+ Vendored sqlite is updated to [v3.43.0](https://sqlite.org/releaselog/3_43_0.html).
101
+
102
+ Upstream release notes:
103
+
104
+ > SQLite Release 3.43.0 On 2023-08-24
105
+ > * Add support for Contentless-Delete FTS5 Indexes. This is a variety of FTS5 full-text search index that omits storing the content that is being indexed while also allowing records to be deleted.
106
+ > * Enhancements to the date and time functions:
107
+ > * Added new time shift modifiers of the form ±YYYY-MM-DD HH:MM:SS.SSS.
108
+ > * Added the timediff() SQL function.
109
+ > * Added the octet_length(X) SQL function.
110
+ > * Added the sqlite3_stmt_explain() API.
111
+ > * Query planner enhancements:
112
+ > * Generalize the LEFT JOIN strength reduction optimization so that it works for RIGHT and FULL JOINs as well. Rename it to OUTER JOIN strength reduction.
113
+ > * Enhance the theorem prover in the OUTER JOIN strength reduction optimization so that it returns fewer false-negatives.
114
+ > * Enhancements to the decimal extension:
115
+ > * New function decimal_pow2(N) returns the N-th power of 2 for integer N between -20000 and +20000.
116
+ > * New function decimal_exp(X) works like decimal(X) except that it returns the result in exponential notation - with a "e+NN" at the end.
117
+ > * If X is a floating-point value, then the decimal(X) function now does a full expansion of that value into its exact decimal equivalent.
118
+ > * Performance enhancements to JSON processing results in a 2x performance improvement for some kinds of processing on large JSON strings.
119
+ > * New makefile target "verify-source" checks to ensure that there are no unintentional changes in the source tree. (Works for canonical source code only - not for precompiled amalgamation tarballs.)
120
+ > * Added the SQLITE_USE_SEH compile-time option that enables Structured Exception Handling on Windows while working with the memory-mapped shm file that is part of WAL mode processing. This option is enabled by default when building on Windows using Makefile.msc.
121
+ > * The VFS for unix now assumes that the nanosleep() system call is available unless compiled with -DHAVE_NANOSLEEP=0.
122
+
123
+
124
+ ## 1.6.3 / 2023-05-16
125
+
126
+ ### Dependencies
127
+
128
+ Vendored sqlite is updated to [v3.42.0](https://sqlite.org/releaselog/3_42_0.html).
129
+
130
+ From the release announcement:
131
+
132
+ > This is a regular enhancement release. The main new features are:
133
+ > * SQLite will now parse and understand JSON5, though it is careful to generate only pure, canonical JSON.
134
+ > * The secure-delete option has been added to the FTS5 extension.
135
+
136
+
137
+ ## 1.6.2 / 2023-03-27
138
+
139
+ ### Dependencies
140
+
141
+ Vendored sqlite is updated from v3.41.0 to [v3.41.2](https://sqlite.org/releaselog/3_41_2.html).
142
+
143
+
144
+ ### Packaging
145
+
146
+ * Allow compilation against system libraries without the presence of `mini_portile2`, primarily for the convenience of linux distro repackagers. [#381] (Thank you, @voxik!)
147
+
148
+
149
+ ## 1.6.1 / 2023-02-22
150
+
151
+ ### Dependencies
152
+
153
+ * Vendored sqlite is updated to [v3.41.0](https://sqlite.org/releaselog/3_41_0.html).
154
+
155
+
156
+ ## 1.6.0 / 2023-01-13
157
+
158
+ ### Ruby
159
+
160
+ This release introduces native gem support for Ruby 3.2.
161
+
162
+ This release ends native gem support for Ruby 2.6, for which [upstream support ended 2022-04-12](https://www.ruby-lang.org/en/downloads/branches/).
163
+
164
+
165
+ ### Dependencies
166
+
167
+ * Vendored sqlite3 is updated to [v3.40.1](https://sqlite.org/releaselog/3_40_1.html).
168
+
169
+
170
+ ### Fixes
171
+
172
+ * `get_boolean_pragma` now returns the correct value. Previously, it always returned true. [#275] (Thank you, @Edouard-chin!)
173
+
174
+
175
+ ## 1.5.4 / 2022-11-18
176
+
177
+ ### Dependencies
178
+
179
+ * Vendored sqlite is updated to [v3.40.0](https://sqlite.org/releaselog/3_40_0.html).
180
+
181
+
182
+ ## 1.5.3 / 2022-10-11
183
+
184
+ ### Fixed
185
+
186
+ * Fixed installation of the "ruby" platform gem when building from source on Fedora. In v1.5.0..v1.5.2, installation failed on some systems due to the behavior of Fedora's pkg-config implementation. [#355]
187
+
188
+
189
+ ## 1.5.2 / 2022-10-01
190
+
191
+ ### Packaging
192
+
193
+ This version correctly vendors the tarball for sqlite v3.39.4 in the vanilla "ruby" platform gem package, so that users will not require network access at installation.
194
+
195
+ v1.5.0 and v1.5.1 mistakenly packaged the tarball for sqlite v3.38.5 in the vanilla "ruby" platform gem, resulting in downloading the intended tarball over the network at installation time (or, if the network was not available, failure to install). Note that the precompiled native gems were not affected by this issue. [#352]
196
+
197
+
198
+ ## 1.5.1 / 2022-09-29
199
+
200
+ ### Dependencies
201
+
202
+ * Vendored sqlite is updated to [v3.39.4](https://sqlite.org/releaselog/3_39_4.html).
203
+
204
+ ### Security
205
+
206
+ The vendored version of sqlite, v3.39.4, should be considered to be a security release. From the release notes:
207
+
208
+ > Version 3.39.4 is a minimal patch against the prior release that addresses issues found since the
209
+ > prior release. In particular, a potential vulnerability in the FTS3 extension has been fixed, so
210
+ > this should be considered a security update.
211
+ >
212
+ > In order to exploit the vulnerability, an attacker must have full SQL access and must be able to
213
+ > construct a corrupt database with over 2GB of FTS3 content. The problem arises from a 32-bit
214
+ > signed integer overflow.
215
+
216
+ For more information please see [GHSA-mgvv-5mxp-xq67](https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-mgvv-5mxp-xq67).
217
+
218
+
219
+ ## 1.5.0 / 2022-09-08
220
+
221
+ ### Packaging
222
+
223
+ #### Faster, more reliable installation
224
+
225
+ Native (precompiled) gems are available for Ruby 2.6, 2.7, 3.0, and 3.1 on all these platforms:
226
+
227
+ - `aarch64-linux`
228
+ - `arm-linux`
229
+ - `arm64-darwin`
230
+ - `x64-mingw32` and `x64-mingw-ucrt`
231
+ - `x86-linux`
232
+ - `x86_64-darwin`
233
+ - `x86_64-linux`
234
+
235
+ If you are using one of these Ruby versions on one of these platforms, the native gem is the recommended way to install sqlite3-ruby.
236
+
237
+ See [the README](https://github.com/sparklemotion/sqlite3-ruby#native-gems-recommended) for more information.
238
+
239
+
240
+ #### More consistent developer experience
241
+
242
+ Both the native (precompiled) gems and the vanilla "ruby platform" (source) gem include sqlite v3.39.3 by default.
243
+
244
+ Defaulting to a consistent version of sqlite across all systems means that your development environment behaves exactly like your production environment, and you have access to the latest and greatest features of sqlite.
245
+
246
+ You can opt-out of the packaged version of sqlite (and use your system-installed library as in versions < 1.5.0). See [the README](https://github.com/sparklemotion/sqlite3-ruby#avoiding-the-precompiled-native-gem) for more information.
247
+
248
+ [Release notes for this version of sqlite](https://sqlite.org/releaselog/3_39_3.html)
249
+
250
+
251
+ ### Rubies and Platforms
252
+
253
+ * TruffleRuby is supported.
254
+ * Apple Silicon is supported (M1, arm64-darwin).
255
+ * vcpkg system libraries supported. [#332] (Thanks, @MSP-Greg!)
256
+
257
+
258
+ ### Added
259
+
260
+ * `SQLite3::SQLITE_LOADED_VERSION` contains the version string of the sqlite3 library that is dynamically loaded (compare to `SQLite3::SQLITE_VERSION` which is the version at compile-time).
261
+
262
+
263
+ ### Fixed
264
+
265
+ * `SQLite3::Database#load_extensions` now raises a `TypeError` unless a String is passed as the file path. Previously it was possible to pass a non-string and cause a segfault. [#339]
266
+
267
+
268
+ ## 1.4.4 / 2022-06-14
269
+
270
+ ### Fixes
271
+
272
+ * Compilation no longer fails against SQLite3 versions < 3.29.0. This issue was introduced in v1.4.3. [#324] (Thank you, @r6e!)
273
+
274
+
275
+ ## 1.4.3 / 2022-05-25
276
+
277
+ ### Enhancements
278
+
279
+ * Disable non-standard support for double-quoted string literals via the `:strict` option. [#317] (Thank you, @casperisfine!)
280
+ * Column type names are now explicitly downcased on platforms where they may have been in shoutcaps. [#315] (Thank you, @petergoldstein!)
281
+ * Support File or Pathname arguments to `Database.new`. [#283] (Thank you, @yb66!)
282
+ * Support building on MSVC. [#285] (Thank you, @jmarrec!)
283
+
284
+
285
+ ## 1.4.2 / 2019-12-18
286
+
287
+ * Travis: Drop unused setting "sudo: false"
288
+ * The taint mechanism will be deprecated in Ruby 2.7
289
+ * Fix Ruby 2.7 rb_check_safe_obj warnings
290
+ * Update travis config
291
+
292
+
293
+ ## 1.4.1
294
+
295
+ * Don't mandate dl functions for the extention build
296
+ * bumping version
297
+
298
+
299
+ ## 1.4.0
300
+
301
+ ### Enhancements
302
+
303
+ * Better aggregator support
304
+
305
+ ### Bugfixes
306
+
307
+ * Various
308
+
309
+
310
+ ## 1.3.13
311
+
312
+ ### Enhancements
313
+
314
+ * Support SQLite flags when defining functions
315
+ * Add definition for SQLITE_DETERMINISTIC flag
316
+
317
+
318
+ ## 1.3.12
319
+
320
+ ### Bugfixes
321
+
322
+ * OS X install will default to homebrew if available. Fixes #195
323
+
324
+
325
+ ## 1.3.11 / 2015-10-10
326
+
327
+ ### Enhancements
328
+
329
+ * Windows: build against SQLite 3.8.11.1
330
+
331
+ ### Internal
332
+
333
+ * Use rake-compiler-dock to build Windows binaries. Pull #159 [larskanis]
334
+ * Expand Ruby versions being tested for Travis and AppVeyor
335
+
336
+
337
+ ## 1.3.10 / 2014-10-30
338
+
339
+ ### Enhancements
340
+
341
+ * Windows: build against SQLite 3.8.6. Closes #135 [Hubro]
342
+
343
+
344
+ ## 1.3.9 / 2014-02-25
345
+
346
+ ### Bugfixes
347
+
348
+ * Reset exception message. Closes #80
349
+ * Reduce warnings due unused pointers. Closes #89
350
+ * Add BSD-3 license reference to gemspec. Refs #99 and #106
351
+
352
+
353
+ ## 1.3.8 / 2013-08-17
354
+
355
+ ### Enhancements
356
+
357
+ * Windows: build against SQLite 3.7.17
358
+
359
+ ### Bugfixes
360
+
361
+ * Reset exception message. Closes #80
362
+ * Correctly convert BLOB values to Ruby. Closes #65
363
+ * Add MIT license reference to gemspec. Closes #99
364
+ * Remove unused pointer. Closes #89
365
+
366
+ ### Internal
367
+
368
+ * Backport improvements in cross compilation for Windows
369
+ * Use of Minitest for internal tests
370
+ * Use Gemfile (generated by Hoe) to deal with dependencies
371
+ * Cleanup Travis CI
372
+
373
+
374
+ ## 1.3.7 / 2013-01-11
375
+
376
+ ### Bugfixes
377
+
378
+ * Closing a bad statement twice will not segv.
379
+ * Aggregate handlers are initialized on each query. Closes #44
380
+
381
+ ### Internal
382
+
383
+ * Unset environment variables that could affect cross compilation.
384
+
385
+
386
+ ## 1.3.6 / 2012-04-16
387
+
388
+ ### Enhancements
389
+
390
+ * Windows: build against SQLite 3.7.11
391
+ * Added SQLite3::ResultSet#each_hash for fetching each row as a hash.
392
+ * Added SQLite3::ResultSet#next_hash for fetching one row as a hash.
393
+
394
+ ### Bugfixes
395
+
396
+ * Support both UTF-16LE and UTF-16BE encoding modes on PPC. Closes #63
397
+ * Protect parameters to custom functions from being garbage collected too
398
+ soon. Fixes #60. Thanks hirataya!
399
+ * Fix backwards compatibility with 1.2.5 with bind vars and `query` method.
400
+ Fixes #35.
401
+ * Fix double definition error caused by defining sqlite3_int64/uint64.
402
+ * Fix suspicious version regexp.
403
+
404
+ ### Deprecations
405
+
406
+ * ArrayWithTypesAndFields#types is deprecated and the class will be removed
407
+ in version 2.0.0. Please use the `types` method on the ResultSet class
408
+ that created this object.
409
+ * ArrayWithTypesAndFields#fields is deprecated and the class will be removed
410
+ in version 2.0.0. Please use the `columns` method on the ResultSet class
411
+ that created this object.
412
+ * The ArrayWithTypesAndFields class will be removed in 2.0.0
413
+ * The ArrayWithTypes class will be removed in 2.0.0
414
+ * HashWithTypesAndFields#types is deprecated and the class will be removed
415
+ in version 2.0.0. Please use the `types` method on the ResultSet class
416
+ that created this object.
417
+ * HashWithTypesAndFields#fields is deprecated and the class will be removed
418
+ in version 2.0.0. Please use the `columns` method on the ResultSet class
419
+ that created this object.
420
+
421
+
422
+ ## 1.3.5 / 2011-12-03 - ZOMG Holidays are here Edition!
423
+
424
+ ### Enhancements
425
+
426
+ * Windows: build against SQLite 3.7.9
427
+ * Static: enable SQLITE_ENABLE_COLUMN_METADATA
428
+ * Added Statement#clear_bindings! to set bindings back to nil
429
+
430
+ ### Bugfixes
431
+
432
+ * Fixed a segv on Database.new. Fixes #34 (thanks nobu!)
433
+ * Database error is not reset, so don't check it in Statement#reset!
434
+ * Remove conditional around Bignum statement bindings.
435
+ Fixes #52. Fixes #56. Thank you Evgeny Myasishchev.
436
+
437
+ ### Internal
438
+
439
+ * Use proper endianness when testing database connection with UTF-16.
440
+ Fixes #40. Fixes #51
441
+ * Use -fPIC for static compilation when host is x86_64.
442
+
443
+
444
+ ## 1.3.4 / 2011-07-25
445
+
446
+ ### Enhancements
447
+
448
+ * Windows: build against SQLite 3.7.7.1
449
+ * Windows: build static binaries that do not depend on sqlite3.dll be
450
+ installed anymore
451
+
452
+ ### Bugfixes
453
+
454
+ * Backup API is conditionally required so that older libsqlite3 can be used.
455
+ Thanks Hongli Lai.
456
+ * Fixed segmentation fault when nil is passed to SQLite3::Statement.new
457
+ * Fix extconf's hardcoded path that affected installation on certain systems.
458
+
459
+
460
+ ## 1.3.3 / 2010-01-16
461
+
462
+ ### Bugfixes
463
+
464
+ * Abort on installation if sqlite3_backup_init is missing. Fixes #19
465
+ * Gem has been renamed to 'sqlite3'. Please use `gem install sqlite3`
466
+
467
+
468
+ ## 1.3.2 / 2010-10-30 / RubyConf Uruguay Edition!
469
+
470
+ ### Enhancements
471
+
472
+ * Windows: build against 3.7.3 version of SQLite3
473
+ * SQLite3::Database can now be open as readonly
474
+
475
+ db = SQLite3::Database.new('my.db', :readonly => true)
476
+
477
+ * Added SQLite3::SQLITE_VERSION and SQLite3::SQLITE_VERSION_NUMBER [nurse]
478
+
479
+ ### Bugfixes
480
+
481
+ * type_translation= works along with Database#execute and a block
482
+ * defined functions are kept in a hash to prevent GC. #7
483
+ * Removed GCC specific flags from extconf.
484
+
485
+ ### Deprecations
486
+
487
+ * SQLite3::Database#type_translation= will be deprecated in the future with
488
+ no replacement.
489
+ * SQlite3::Version will be deprecated in 2.0.0 with SQLite3::VERSION as the
490
+ replacement.
491
+
492
+
493
+ ## 1.3.1 / 2010-07-09
494
+
495
+ ### Enhancements
496
+
497
+ * Custom collations may be defined using SQLite3::Database#collation
498
+
499
+ ### Bugfixes
500
+
501
+ * Statements returning 0 columns are automatically stepped. [RF #28308]
502
+ * SQLite3::Database#encoding works on 1.8 and 1.9
503
+
504
+
505
+ ## 1.3.0 / 2010-06-06
506
+
507
+ ### Enhancements
508
+
509
+ * Complete rewrite of C-based adapter from SWIG to hand-crafted one [tenderlove]
510
+ See API_CHANGES document for details.
511
+ This closes: Bug #27300, Bug #27241, Patch #16020
512
+ * Improved UTF, Unicode, M17N, all that handling and proper BLOB handling [tenderlove, nurse]
513
+ * Added support for type translations [tenderlove]
514
+
515
+ @db.translator.add_translator('sometime') do |type, thing|
516
+ 'output' # this will be returned as value for that column
517
+ end
518
+
519
+ ### Experimental
520
+
521
+ * Added API to access and load extensions. [kashif]
522
+ These functions maps directly into SQLite3 own enable_load_extension()
523
+ and load_extension() C-API functions. See SQLite3::Database API documentation for details.
524
+ This closes: Patches #9178
525
+
526
+ ### Bugfixes
527
+
528
+ * Corrected gem dependencies (runtime and development)
529
+ * Fixed threaded tests [Alexey Borzenkov]
530
+ * Removed GitHub gemspec
531
+ * Fixed "No definition for" warnings from RDoc
532
+ * Generate zip and tgz files for releases
533
+ * Added Luis Lavena as gem Author (maintainer)
534
+ * Prevent mkmf interfere with Mighty Snow Leopard
535
+ * Allow extension compilation search for common lib paths [kashif]
536
+ (lookup /usr/local, /opt/local and /usr)
537
+ * Corrected extension compilation under MSVC [romuloceccon]
538
+ * Define load_extension functionality based on availability [tenderlove]
539
+ * Deprecation notices for Database#query. Fixes RF #28192
540
+
541
+
542
+ ## 1.3.0.beta.2 / 2010-05-15
543
+
544
+ ### Enhancements
545
+
546
+ * Added support for type translations [tenderlove]
547
+
548
+ @db.translator.add_translator('sometime') do |type, thing|
549
+ 'output' # this will be returned as value for that column
550
+ end
551
+
552
+ ### Bugfixes
553
+
554
+ * Allow extension compilation search for common lib paths [kashif]
555
+ (lookup /usr/local, /opt/local and /usr)
556
+ * Corrected extension compilation under MSVC [romuloceccon]
557
+ * Define load_extension functionality based on availability [tenderlove]
558
+ * Deprecation notices for Database#query. Fixes RF #28192
559
+
560
+
561
+ ## 1.3.0.beta.1 / 2010-05-10
562
+
563
+ ### Enhancements
564
+
565
+ * Complete rewrite of C-based adapter from SWIG to hand-crafted one [tenderlove]
566
+ See API_CHANGES document for details.
567
+ This closes: Bug #27300, Bug #27241, Patch #16020
568
+ * Improved UTF, Unicode, M17N, all that handling and proper BLOB handling [tenderlove, nurse]
569
+
570
+ ### Experimental
571
+
572
+ * Added API to access and load extensions. [kashif]
573
+ These functions maps directly into SQLite3 own enable_load_extension()
574
+ and load_extension() C-API functions. See SQLite3::Database API documentation for details.
575
+ This closes: Patches #9178
576
+
577
+ ### Bugfixes
578
+
579
+ * Corrected gem dependencies (runtime and development)
580
+ * Fixed threaded tests [Alexey Borzenkov]
581
+ * Removed GitHub gemspec
582
+ * Fixed "No definition for" warnings from RDoc
583
+ * Generate zip and tgz files for releases
584
+ * Added Luis Lavena as gem Author (maintainer)
585
+ * Prevent mkmf interfere with Mighty Snow Leopard
586
+
587
+
588
+ ## 1.2.5 / 2009-07-25
589
+
590
+ * Check for illegal nil before executing SQL [Erik Veenstra]
591
+ * Switch to Hoe for gem task management and packaging.
592
+ * Advertise rake-compiler as development dependency.
593
+ * Build gem binaries for Windows.
594
+ * Improved Ruby 1.9 support compatibility.
595
+ * Taint returned values. Patch #20325.
596
+ * Database.open and Database.new now take an optional block [Gerrit Kaiser]
597
+
598
+
599
+ ## 1.2.4.1 (internal) / 2009-07-05
600
+
601
+ * Check for illegal nil before executing SQL [Erik Veenstra]
602
+ * Switch to Hoe for gem task management and packaging.
603
+ * Advertise rake-compiler as development dependency.
604
+ * Build gem binaries for Windows.
605
+ * Improved Ruby 1.9 support compatibility.
606
+
607
+
608
+ ## 1.2.4 / 2008-08-27
609
+
610
+ * Package the updated C file for source builds. [Jamis Buck]
611
+
612
+
613
+ ## 1.2.3 / 2008-08-26
614
+
615
+ * Fix incorrect permissions on database.rb and translator.rb [Various]
616
+ * Avoid using Object#extend for greater speedups [Erik Veenstra]
617
+ * Ruby 1.9 compatibility tweaks for Array#zip [jimmy88@gmail.com]
618
+ * Fix linking against Ruby 1.8.5 [Rob Holland <rob@inversepath.com>]
619
+
620
+
621
+ ## 1.2.2 / 2008-05-31
622
+
623
+ * Make the table_info method adjust the returned default value for the rows
624
+ so that the sqlite3 change in 3.3.8 and greater can be handled
625
+ transparently [Jamis Buck <jamis@37signals.com>]
626
+ * Ruby 1.9 compatibility tweaks [Roman Le Negrate <roman2k@free.fr>]
627
+ * Various performance enhancements [thanks Erik Veenstra]
628
+ * Correct busy_handler documentation [Rob Holland <rob@inversepath.com>]
629
+ * Use int_bind64 on Fixnum values larger than a 32bit C int can take. [Rob Holland <rob@inversepath.com>]
630
+ * Work around a quirk in SQLite's error reporting by calling sqlite3_reset
631
+ to produce a more informative error code upon a failure from
632
+ sqlite3_step. [Rob Holland <rob@inversepath.com>]
633
+ * Various documentation, test, and style tweaks [Rob Holland <rob@inversepath.com>]
634
+ * Be more granular with time/data translation [Rob Holland <rob@inversepath.com>]
635
+ * Use Date directly for parsing rather than going via Time [Rob Holland <rob@inversepath.com>]
636
+ * Check for the rt library and fdatasync so we link against that when
637
+ needed [Rob Holland <rob@inversepath.com>]
638
+ * Rename data structures to avoid collision on win32. based on patch
639
+ by: Luis Lavena [Rob Holland <rob@inversepath.com>]
640
+ * Add test for defaults [Daniel Rodríguez Troitiño]
641
+ * Correctly unquote double-quoted pragma defaults [Łukasz Dargiewicz <lukasz.dargiewicz@gmail.com>]