sqlite3 2.0.0-x86-linux-gnu

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md ADDED
@@ -0,0 +1,800 @@
1
+ # sqlite3-ruby Changelog
2
+
3
+ ## 2.0.0 / 2024-04-17
4
+
5
+ This is a major release which contains some breaking changes, primarily the removal of
6
+ long-deprecated functionality. Before upgrading, please make sure to address deprecation warnings
7
+ emitted from your application using sqlite3-ruby v1.7.x.
8
+
9
+
10
+ ### Ruby
11
+
12
+ - This release drops support for Ruby 2.7. [#453] @flavorjones
13
+
14
+
15
+ ### Packaging
16
+
17
+ Native (precompiled) gems are now available for Linux Musl. [#442] @flavorjones
18
+
19
+ Here are the platforms for which native gems are shipped:
20
+
21
+ - `aarch64-linux-gnu` (requires: glibc >= 2.29)
22
+ - `aarch64-linux-musl`
23
+ - `arm-linux-gnu` (requires: glibc >= 2.29)
24
+ - `arm-linux-musl`
25
+ - `arm64-darwin`
26
+ - `x64-mingw32` / `x64-mingw-ucrt`
27
+ - `x86-linux-gnu` (requires: glibc >= 2.17)
28
+ - `x86-linux-musl`
29
+ - `x86_64-darwin`
30
+ - `x86_64-linux-gnu` (requires: glibc >= 2.17)
31
+ - `x86_64-linux-musl`
32
+
33
+ ⚠ Ruby 3.0 linux users must use Rubygems >= 3.3.22 in order to use these gems.
34
+
35
+ ⚠ Musl linux users should update to Bundler >= 2.5.6 to avoid https://github.com/rubygems/rubygems/issues/7432
36
+
37
+ See [the INSTALLATION doc](https://github.com/sparklemotion/sqlite3-ruby/blob/main/INSTALLATION.md) for more information.
38
+
39
+
40
+ ### Dependencies
41
+
42
+ - Vendored sqlite is updated to [v3.45.3](https://sqlite.org/releaselog/3_45_3.html). @flavorjones
43
+
44
+
45
+ ### Added
46
+
47
+ - `Database#busy_handler_timeout=` introduced as an alternative to `#busy_timeout=` that can be used when it's desired to release the GVL between retries. [#443, #456] @fractaledmind
48
+ - Support the `SUPER_JOURNAL` flag which is an alias for `MASTER_JOURNAL` as of sqlite 3.33.0. [#467] @flavorjones
49
+ - `Statement#stat` and `Statement#memused` introduced to report statistics. [#461] @fractaledmind
50
+ - `Statement#sql` and `Statement#expanded_sql` introduced to retrieve the SQL statement associated with the `Statement` object. [#293, #498] @tenderlove
51
+ - `SQLite3.status` introduced to return run-time status and reset high-water marks. See `SQLite3::Constants::Status` for details. [#520] @wjlroe
52
+
53
+
54
+ ### Improved
55
+
56
+ - Avoid leaking memory for statements that are not closed properly. [#392] @haileys
57
+ - Moved some C code into Ruby. [#451, #455] @tenderlove
58
+ - Improve performance of `ResultSet` hashes. [#154, #484, #468] @tenderlove
59
+ - Fix a GC compaction issue with `busy_handler`. [#466] @byroot
60
+ - Remove unused `ResultSet` instance variable. [#469] @tenderlove
61
+ - Fix encoding for values passed to custom functions. [#218, #488] @tenderlove
62
+
63
+
64
+ ### Changed
65
+
66
+ - Consistently use `SQLite3::Exception` or subclasses. Previously some `Pragmas` methods raised `Exception`, and `Database#execute_batch2` and `Database#load_extension` raised `RuntimeError`. [#467, #490] @flavorjones
67
+ - `Database#columns` returns a list of internal frozen strings. [#155, #474, #486] @tenderlove
68
+ - Freeze results that come from the database. [#480] @tenderlove
69
+ - The encoding of a Database is no longer cached. [#485] @tenderlove
70
+ - `Database#transaction` returns the result of the block when used with a block. [#508] @alexcwatt
71
+ - `Database#execute_batch` returns the result of the last statement executed. [#512] @alexcwatt
72
+
73
+
74
+ ### Removed
75
+
76
+ - Removed class `SQLite3::Translator` and all related type translation methods which have been deprecated since v1.3.2. [#470] @tenderlove
77
+
78
+ If you need to do type translation on values returned from the statement object, please wrap it
79
+ with a delegate object. Here is an example of using a delegate class to implement type
80
+ translation:
81
+
82
+ ```ruby
83
+ require "sqlite3"
84
+ require "delegate"
85
+
86
+ db = SQLite3::Database.new(":memory:")
87
+
88
+ return_value = db.execute_batch2 <<-EOSQL
89
+ CREATE TABLE items (id integer PRIMARY KEY AUTOINCREMENT, name string);
90
+ INSERT INTO items (name) VALUES ("foo");
91
+ INSERT INTO items (name) VALUES ("bar");
92
+ EOSQL
93
+
94
+ class MyTranslator < DelegateClass(SQLite3::Statement)
95
+ def step
96
+ row = super
97
+ return if done?
98
+
99
+ row.map.with_index do |item, i|
100
+ case types[i]
101
+ when "integer" # turn all integers to floats
102
+ item.to_f
103
+ when "string" # add "hello" to all strings
104
+ item + "hello"
105
+ end
106
+ end
107
+ end
108
+ end
109
+
110
+ db.prepare("SELECT * FROM items") do |stmt|
111
+ stmt = MyTranslator.new(stmt)
112
+ while row = stmt.step
113
+ p row
114
+ end
115
+ end
116
+ ```
117
+
118
+ - Removed `types` and `fields` readers on row objects, which have been deprecated since
119
+ v1.3.6. [#471] @tenderlove
120
+
121
+ Deprecated code looks like this:
122
+
123
+ ```ruby
124
+ row = @db.execute("select * from foo")
125
+ assert_equal ["blob"], row.first.types
126
+ ```
127
+
128
+ If you would like to access the "types" associated with a returned query,
129
+ use a prepared statement like this:
130
+
131
+ ```ruby
132
+ @db.prepare("select * from foo") do |v|
133
+ assert_equal ["blob"], v.types
134
+ end
135
+ ```
136
+
137
+ - Removed support for non-Array bind parameters to methods `Database#execute`, `#execute_batch`, and `#query`, which has been deprecated since v1.3.0. [#511] @flavorjones
138
+
139
+ Deprecated code looks like this:
140
+
141
+ ``` ruby
142
+ @db.query("select * from foo where a = ? and b = ? and c = ?", 1, 2, 3)
143
+ ```
144
+
145
+ For these cases, pass the bind parameters as an array:
146
+
147
+ ``` ruby
148
+ @db.query("select * from foo where a = ? and b = ? and c = ?", [1, 2, 3])
149
+ ```
150
+
151
+ - Removed class `SQLite3::VersionProxy` which has been deprecated since v1.3.2. [#453] @flavorjones
152
+ - Removed methods `SQLite3::Database::FunctionProxy#count` and `#set_error` which have been broken since at least v1.3.13. [#164, #509, #510] @alexcwatt @flavorjones
153
+
154
+
155
+ ## 1.7.3 / 2024-03-15
156
+
157
+ ### Dependencies
158
+
159
+ - Vendored sqlite is updated to [v3.45.2](https://www.sqlite.org/releaselog/3_45_2.html). @flavorjones
160
+
161
+
162
+ ## 1.7.2 / 2024-01-30
163
+
164
+ ### Dependencies
165
+
166
+ - Vendored sqlite is updated to [v3.45.1](https://www.sqlite.org/releaselog/3_45_1.html). @flavorjones
167
+
168
+
169
+ ## 1.7.1 / 2024-01-24
170
+
171
+ ### Dependencies
172
+
173
+ - Vendored sqlite is updated to [v3.45.0](https://www.sqlite.org/releaselog/3_45_0.html). @flavorjones
174
+
175
+
176
+ ## 1.7.0 / 2023-12-27
177
+
178
+ ### Ruby
179
+
180
+ This release introduces native gem support for Ruby 3.3.
181
+
182
+ 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.
183
+
184
+ This release ends support for Ruby 1.9.3, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, and 2.6.
185
+
186
+ ### Improved
187
+
188
+ - 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
189
+
190
+
191
+ ## 1.6.9 / 2023-11-26
192
+
193
+ ### Dependencies
194
+
195
+ - Vendored sqlite is update to [v3.44.2](https://sqlite.org/releaselog/3_44_2.html). @flavorjones
196
+
197
+ ### Added
198
+
199
+ - `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
200
+
201
+
202
+ ## 1.6.8 / 2023-11-01
203
+
204
+ ### Dependencies
205
+
206
+ - Vendored sqlite is updated to [v3.44.0](https://sqlite.org/releaselog/3_44_0.html). @flavorjones
207
+ - rake-compiler-dock updated to v1.3.1 for precompiled native gems. @flavorjones
208
+
209
+
210
+ ### Added
211
+
212
+ - `SQLite3::Database.open` now returns the block result. Previously this returned the Database object. [#415] @toy
213
+ - Documentation improvement in `lib/sqlite3/database.rb`. [#421] @szTheory
214
+
215
+
216
+ ## 1.6.7 / 2023-10-10
217
+
218
+ ### Dependencies
219
+
220
+ Vendored sqlite is updated to [v3.43.2](https://sqlite.org/releaselog/3_43_2.html).
221
+
222
+ Upstream release notes:
223
+
224
+ > - Fix a couple of obscure UAF errors and an obscure memory leak.
225
+ > - 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.
226
+ > - Avoid conversion of a double into unsigned long long integer, as some platforms do not do such conversions correctly.
227
+
228
+
229
+ ### Added
230
+
231
+ * Compile packaged sqlite3 with additional flags to explicitly enable FTS5, and set synchronous mode to normal when in WAL mode. [#408] (@flavorjones)
232
+
233
+
234
+ ## 1.6.6 / 2023-09-12
235
+
236
+ ### Dependencies
237
+
238
+ Vendored sqlite is updated to [v3.43.1](https://sqlite.org/releaselog/3_43_1.html).
239
+
240
+ Upstream release notes:
241
+
242
+ > - 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.
243
+ > - 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).
244
+ > - 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.
245
+ > - Other minor fixes.
246
+
247
+
248
+ ## 1.6.5 / 2023-09-08
249
+
250
+ ### Packaging
251
+
252
+ * 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)
253
+
254
+
255
+ ## 1.6.4 / 2023-08-26
256
+
257
+ ### Dependencies
258
+
259
+ Vendored sqlite is updated to [v3.43.0](https://sqlite.org/releaselog/3_43_0.html).
260
+
261
+ Upstream release notes:
262
+
263
+ > SQLite Release 3.43.0 On 2023-08-24
264
+ > * 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.
265
+ > * Enhancements to the date and time functions:
266
+ > * Added new time shift modifiers of the form ±YYYY-MM-DD HH:MM:SS.SSS.
267
+ > * Added the timediff() SQL function.
268
+ > * Added the octet_length(X) SQL function.
269
+ > * Added the sqlite3_stmt_explain() API.
270
+ > * Query planner enhancements:
271
+ > * 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.
272
+ > * Enhance the theorem prover in the OUTER JOIN strength reduction optimization so that it returns fewer false-negatives.
273
+ > * Enhancements to the decimal extension:
274
+ > * New function decimal_pow2(N) returns the N-th power of 2 for integer N between -20000 and +20000.
275
+ > * 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.
276
+ > * 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.
277
+ > * Performance enhancements to JSON processing results in a 2x performance improvement for some kinds of processing on large JSON strings.
278
+ > * 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.)
279
+ > * 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.
280
+ > * The VFS for unix now assumes that the nanosleep() system call is available unless compiled with -DHAVE_NANOSLEEP=0.
281
+
282
+
283
+ ## 1.6.3 / 2023-05-16
284
+
285
+ ### Dependencies
286
+
287
+ Vendored sqlite is updated to [v3.42.0](https://sqlite.org/releaselog/3_42_0.html).
288
+
289
+ From the release announcement:
290
+
291
+ > This is a regular enhancement release. The main new features are:
292
+ > * SQLite will now parse and understand JSON5, though it is careful to generate only pure, canonical JSON.
293
+ > * The secure-delete option has been added to the FTS5 extension.
294
+
295
+
296
+ ## 1.6.2 / 2023-03-27
297
+
298
+ ### Dependencies
299
+
300
+ Vendored sqlite is updated from v3.41.0 to [v3.41.2](https://sqlite.org/releaselog/3_41_2.html).
301
+
302
+
303
+ ### Packaging
304
+
305
+ * Allow compilation against system libraries without the presence of `mini_portile2`, primarily for the convenience of linux distro repackagers. [#381] (Thank you, @voxik!)
306
+
307
+
308
+ ## 1.6.1 / 2023-02-22
309
+
310
+ ### Dependencies
311
+
312
+ * Vendored sqlite is updated to [v3.41.0](https://sqlite.org/releaselog/3_41_0.html).
313
+
314
+
315
+ ## 1.6.0 / 2023-01-13
316
+
317
+ ### Ruby
318
+
319
+ This release introduces native gem support for Ruby 3.2.
320
+
321
+ 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/).
322
+
323
+
324
+ ### Dependencies
325
+
326
+ * Vendored sqlite3 is updated to [v3.40.1](https://sqlite.org/releaselog/3_40_1.html).
327
+
328
+
329
+ ### Fixes
330
+
331
+ * `get_boolean_pragma` now returns the correct value. Previously, it always returned true. [#275] (Thank you, @Edouard-chin!)
332
+
333
+
334
+ ## 1.5.4 / 2022-11-18
335
+
336
+ ### Dependencies
337
+
338
+ * Vendored sqlite is updated to [v3.40.0](https://sqlite.org/releaselog/3_40_0.html).
339
+
340
+
341
+ ## 1.5.3 / 2022-10-11
342
+
343
+ ### Fixed
344
+
345
+ * 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]
346
+
347
+
348
+ ## 1.5.2 / 2022-10-01
349
+
350
+ ### Packaging
351
+
352
+ 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.
353
+
354
+ 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]
355
+
356
+
357
+ ## 1.5.1 / 2022-09-29
358
+
359
+ ### Dependencies
360
+
361
+ * Vendored sqlite is updated to [v3.39.4](https://sqlite.org/releaselog/3_39_4.html).
362
+
363
+ ### Security
364
+
365
+ The vendored version of sqlite, v3.39.4, should be considered to be a security release. From the release notes:
366
+
367
+ > Version 3.39.4 is a minimal patch against the prior release that addresses issues found since the
368
+ > prior release. In particular, a potential vulnerability in the FTS3 extension has been fixed, so
369
+ > this should be considered a security update.
370
+ >
371
+ > In order to exploit the vulnerability, an attacker must have full SQL access and must be able to
372
+ > construct a corrupt database with over 2GB of FTS3 content. The problem arises from a 32-bit
373
+ > signed integer overflow.
374
+
375
+ For more information please see [GHSA-mgvv-5mxp-xq67](https://github.com/sparklemotion/sqlite3-ruby/security/advisories/GHSA-mgvv-5mxp-xq67).
376
+
377
+
378
+ ## 1.5.0 / 2022-09-08
379
+
380
+ ### Packaging
381
+
382
+ #### Faster, more reliable installation
383
+
384
+ Native (precompiled) gems are available for Ruby 2.6, 2.7, 3.0, and 3.1 on all these platforms:
385
+
386
+ - `aarch64-linux`
387
+ - `arm-linux`
388
+ - `arm64-darwin`
389
+ - `x64-mingw32` and `x64-mingw-ucrt`
390
+ - `x86-linux`
391
+ - `x86_64-darwin`
392
+ - `x86_64-linux`
393
+
394
+ 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.
395
+
396
+ See [the README](https://github.com/sparklemotion/sqlite3-ruby#native-gems-recommended) for more information.
397
+
398
+
399
+ #### More consistent developer experience
400
+
401
+ Both the native (precompiled) gems and the vanilla "ruby platform" (source) gem include sqlite v3.39.3 by default.
402
+
403
+ 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.
404
+
405
+ 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.
406
+
407
+ [Release notes for this version of sqlite](https://sqlite.org/releaselog/3_39_3.html)
408
+
409
+
410
+ ### Rubies and Platforms
411
+
412
+ * TruffleRuby is supported.
413
+ * Apple Silicon is supported (M1, arm64-darwin).
414
+ * vcpkg system libraries supported. [#332] (Thanks, @MSP-Greg!)
415
+
416
+
417
+ ### Added
418
+
419
+ * `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).
420
+
421
+
422
+ ### Fixed
423
+
424
+ * `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]
425
+
426
+
427
+ ## 1.4.4 / 2022-06-14
428
+
429
+ ### Fixes
430
+
431
+ * Compilation no longer fails against SQLite3 versions < 3.29.0. This issue was introduced in v1.4.3. [#324] (Thank you, @r6e!)
432
+
433
+
434
+ ## 1.4.3 / 2022-05-25
435
+
436
+ ### Enhancements
437
+
438
+ * Disable non-standard support for double-quoted string literals via the `:strict` option. [#317] (Thank you, @casperisfine!)
439
+ * Column type names are now explicitly downcased on platforms where they may have been in shoutcaps. [#315] (Thank you, @petergoldstein!)
440
+ * Support File or Pathname arguments to `Database.new`. [#283] (Thank you, @yb66!)
441
+ * Support building on MSVC. [#285] (Thank you, @jmarrec!)
442
+
443
+
444
+ ## 1.4.2 / 2019-12-18
445
+
446
+ * Travis: Drop unused setting "sudo: false"
447
+ * The taint mechanism will be deprecated in Ruby 2.7
448
+ * Fix Ruby 2.7 rb_check_safe_obj warnings
449
+ * Update travis config
450
+
451
+
452
+ ## 1.4.1
453
+
454
+ * Don't mandate dl functions for the extention build
455
+ * bumping version
456
+
457
+
458
+ ## 1.4.0
459
+
460
+ ### Enhancements
461
+
462
+ * Better aggregator support
463
+
464
+ ### Bugfixes
465
+
466
+ * Various
467
+
468
+
469
+ ## 1.3.13
470
+
471
+ ### Enhancements
472
+
473
+ * Support SQLite flags when defining functions
474
+ * Add definition for SQLITE_DETERMINISTIC flag
475
+
476
+
477
+ ## 1.3.12
478
+
479
+ ### Bugfixes
480
+
481
+ * OS X install will default to homebrew if available. Fixes #195
482
+
483
+
484
+ ## 1.3.11 / 2015-10-10
485
+
486
+ ### Enhancements
487
+
488
+ * Windows: build against SQLite 3.8.11.1
489
+
490
+ ### Internal
491
+
492
+ * Use rake-compiler-dock to build Windows binaries. Pull #159 [larskanis]
493
+ * Expand Ruby versions being tested for Travis and AppVeyor
494
+
495
+
496
+ ## 1.3.10 / 2014-10-30
497
+
498
+ ### Enhancements
499
+
500
+ * Windows: build against SQLite 3.8.6. Closes #135 [Hubro]
501
+
502
+
503
+ ## 1.3.9 / 2014-02-25
504
+
505
+ ### Bugfixes
506
+
507
+ * Reset exception message. Closes #80
508
+ * Reduce warnings due unused pointers. Closes #89
509
+ * Add BSD-3 license reference to gemspec. Refs #99 and #106
510
+
511
+
512
+ ## 1.3.8 / 2013-08-17
513
+
514
+ ### Enhancements
515
+
516
+ * Windows: build against SQLite 3.7.17
517
+
518
+ ### Bugfixes
519
+
520
+ * Reset exception message. Closes #80
521
+ * Correctly convert BLOB values to Ruby. Closes #65
522
+ * Add MIT license reference to gemspec. Closes #99
523
+ * Remove unused pointer. Closes #89
524
+
525
+ ### Internal
526
+
527
+ * Backport improvements in cross compilation for Windows
528
+ * Use of Minitest for internal tests
529
+ * Use Gemfile (generated by Hoe) to deal with dependencies
530
+ * Cleanup Travis CI
531
+
532
+
533
+ ## 1.3.7 / 2013-01-11
534
+
535
+ ### Bugfixes
536
+
537
+ * Closing a bad statement twice will not segv.
538
+ * Aggregate handlers are initialized on each query. Closes #44
539
+
540
+ ### Internal
541
+
542
+ * Unset environment variables that could affect cross compilation.
543
+
544
+
545
+ ## 1.3.6 / 2012-04-16
546
+
547
+ ### Enhancements
548
+
549
+ * Windows: build against SQLite 3.7.11
550
+ * Added SQLite3::ResultSet#each_hash for fetching each row as a hash.
551
+ * Added SQLite3::ResultSet#next_hash for fetching one row as a hash.
552
+
553
+ ### Bugfixes
554
+
555
+ * Support both UTF-16LE and UTF-16BE encoding modes on PPC. Closes #63
556
+ * Protect parameters to custom functions from being garbage collected too
557
+ soon. Fixes #60. Thanks hirataya!
558
+ * Fix backwards compatibility with 1.2.5 with bind vars and `query` method.
559
+ Fixes #35.
560
+ * Fix double definition error caused by defining sqlite3_int64/uint64.
561
+ * Fix suspicious version regexp.
562
+
563
+ ### Deprecations
564
+
565
+ * ArrayWithTypesAndFields#types is deprecated and the class will be removed
566
+ in version 2.0.0. Please use the `types` method on the ResultSet class
567
+ that created this object.
568
+ * ArrayWithTypesAndFields#fields is deprecated and the class will be removed
569
+ in version 2.0.0. Please use the `columns` method on the ResultSet class
570
+ that created this object.
571
+ * The ArrayWithTypesAndFields class will be removed in 2.0.0
572
+ * The ArrayWithTypes class will be removed in 2.0.0
573
+ * HashWithTypesAndFields#types is deprecated and the class will be removed
574
+ in version 2.0.0. Please use the `types` method on the ResultSet class
575
+ that created this object.
576
+ * HashWithTypesAndFields#fields is deprecated and the class will be removed
577
+ in version 2.0.0. Please use the `columns` method on the ResultSet class
578
+ that created this object.
579
+
580
+
581
+ ## 1.3.5 / 2011-12-03 - ZOMG Holidays are here Edition!
582
+
583
+ ### Enhancements
584
+
585
+ * Windows: build against SQLite 3.7.9
586
+ * Static: enable SQLITE_ENABLE_COLUMN_METADATA
587
+ * Added Statement#clear_bindings! to set bindings back to nil
588
+
589
+ ### Bugfixes
590
+
591
+ * Fixed a segv on Database.new. Fixes #34 (thanks nobu!)
592
+ * Database error is not reset, so don't check it in Statement#reset!
593
+ * Remove conditional around Bignum statement bindings.
594
+ Fixes #52. Fixes #56. Thank you Evgeny Myasishchev.
595
+
596
+ ### Internal
597
+
598
+ * Use proper endianness when testing database connection with UTF-16.
599
+ Fixes #40. Fixes #51
600
+ * Use -fPIC for static compilation when host is x86_64.
601
+
602
+
603
+ ## 1.3.4 / 2011-07-25
604
+
605
+ ### Enhancements
606
+
607
+ * Windows: build against SQLite 3.7.7.1
608
+ * Windows: build static binaries that do not depend on sqlite3.dll be
609
+ installed anymore
610
+
611
+ ### Bugfixes
612
+
613
+ * Backup API is conditionally required so that older libsqlite3 can be used.
614
+ Thanks Hongli Lai.
615
+ * Fixed segmentation fault when nil is passed to SQLite3::Statement.new
616
+ * Fix extconf's hardcoded path that affected installation on certain systems.
617
+
618
+
619
+ ## 1.3.3 / 2010-01-16
620
+
621
+ ### Bugfixes
622
+
623
+ * Abort on installation if sqlite3_backup_init is missing. Fixes #19
624
+ * Gem has been renamed to 'sqlite3'. Please use `gem install sqlite3`
625
+
626
+
627
+ ## 1.3.2 / 2010-10-30 / RubyConf Uruguay Edition!
628
+
629
+ ### Enhancements
630
+
631
+ * Windows: build against 3.7.3 version of SQLite3
632
+ * SQLite3::Database can now be open as readonly
633
+
634
+ db = SQLite3::Database.new('my.db', :readonly => true)
635
+
636
+ * Added SQLite3::SQLITE_VERSION and SQLite3::SQLITE_VERSION_NUMBER [nurse]
637
+
638
+ ### Bugfixes
639
+
640
+ * type_translation= works along with Database#execute and a block
641
+ * defined functions are kept in a hash to prevent GC. #7
642
+ * Removed GCC specific flags from extconf.
643
+
644
+ ### Deprecations
645
+
646
+ * SQLite3::Database#type_translation= will be deprecated in the future with
647
+ no replacement.
648
+ * SQlite3::Version will be deprecated in 2.0.0 with SQLite3::VERSION as the
649
+ replacement.
650
+
651
+
652
+ ## 1.3.1 / 2010-07-09
653
+
654
+ ### Enhancements
655
+
656
+ * Custom collations may be defined using SQLite3::Database#collation
657
+
658
+ ### Bugfixes
659
+
660
+ * Statements returning 0 columns are automatically stepped. [RF #28308]
661
+ * SQLite3::Database#encoding works on 1.8 and 1.9
662
+
663
+
664
+ ## 1.3.0 / 2010-06-06
665
+
666
+ ### Enhancements
667
+
668
+ * Complete rewrite of C-based adapter from SWIG to hand-crafted one [tenderlove]
669
+ See API_CHANGES document for details.
670
+ This closes: Bug #27300, Bug #27241, Patch #16020
671
+ * Improved UTF, Unicode, M17N, all that handling and proper BLOB handling [tenderlove, nurse]
672
+ * Added support for type translations [tenderlove]
673
+
674
+ @db.translator.add_translator('sometime') do |type, thing|
675
+ 'output' # this will be returned as value for that column
676
+ end
677
+
678
+ ### Experimental
679
+
680
+ * Added API to access and load extensions. [kashif]
681
+ These functions maps directly into SQLite3 own enable_load_extension()
682
+ and load_extension() C-API functions. See SQLite3::Database API documentation for details.
683
+ This closes: Patches #9178
684
+
685
+ ### Bugfixes
686
+
687
+ * Corrected gem dependencies (runtime and development)
688
+ * Fixed threaded tests [Alexey Borzenkov]
689
+ * Removed GitHub gemspec
690
+ * Fixed "No definition for" warnings from RDoc
691
+ * Generate zip and tgz files for releases
692
+ * Added Luis Lavena as gem Author (maintainer)
693
+ * Prevent mkmf interfere with Mighty Snow Leopard
694
+ * Allow extension compilation search for common lib paths [kashif]
695
+ (lookup /usr/local, /opt/local and /usr)
696
+ * Corrected extension compilation under MSVC [romuloceccon]
697
+ * Define load_extension functionality based on availability [tenderlove]
698
+ * Deprecation notices for Database#query. Fixes RF #28192
699
+
700
+
701
+ ## 1.3.0.beta.2 / 2010-05-15
702
+
703
+ ### Enhancements
704
+
705
+ * Added support for type translations [tenderlove]
706
+
707
+ @db.translator.add_translator('sometime') do |type, thing|
708
+ 'output' # this will be returned as value for that column
709
+ end
710
+
711
+ ### Bugfixes
712
+
713
+ * Allow extension compilation search for common lib paths [kashif]
714
+ (lookup /usr/local, /opt/local and /usr)
715
+ * Corrected extension compilation under MSVC [romuloceccon]
716
+ * Define load_extension functionality based on availability [tenderlove]
717
+ * Deprecation notices for Database#query. Fixes RF #28192
718
+
719
+
720
+ ## 1.3.0.beta.1 / 2010-05-10
721
+
722
+ ### Enhancements
723
+
724
+ * Complete rewrite of C-based adapter from SWIG to hand-crafted one [tenderlove]
725
+ See API_CHANGES document for details.
726
+ This closes: Bug #27300, Bug #27241, Patch #16020
727
+ * Improved UTF, Unicode, M17N, all that handling and proper BLOB handling [tenderlove, nurse]
728
+
729
+ ### Experimental
730
+
731
+ * Added API to access and load extensions. [kashif]
732
+ These functions maps directly into SQLite3 own enable_load_extension()
733
+ and load_extension() C-API functions. See SQLite3::Database API documentation for details.
734
+ This closes: Patches #9178
735
+
736
+ ### Bugfixes
737
+
738
+ * Corrected gem dependencies (runtime and development)
739
+ * Fixed threaded tests [Alexey Borzenkov]
740
+ * Removed GitHub gemspec
741
+ * Fixed "No definition for" warnings from RDoc
742
+ * Generate zip and tgz files for releases
743
+ * Added Luis Lavena as gem Author (maintainer)
744
+ * Prevent mkmf interfere with Mighty Snow Leopard
745
+
746
+
747
+ ## 1.2.5 / 2009-07-25
748
+
749
+ * Check for illegal nil before executing SQL [Erik Veenstra]
750
+ * Switch to Hoe for gem task management and packaging.
751
+ * Advertise rake-compiler as development dependency.
752
+ * Build gem binaries for Windows.
753
+ * Improved Ruby 1.9 support compatibility.
754
+ * Taint returned values. Patch #20325.
755
+ * Database.open and Database.new now take an optional block [Gerrit Kaiser]
756
+
757
+
758
+ ## 1.2.4.1 (internal) / 2009-07-05
759
+
760
+ * Check for illegal nil before executing SQL [Erik Veenstra]
761
+ * Switch to Hoe for gem task management and packaging.
762
+ * Advertise rake-compiler as development dependency.
763
+ * Build gem binaries for Windows.
764
+ * Improved Ruby 1.9 support compatibility.
765
+
766
+
767
+ ## 1.2.4 / 2008-08-27
768
+
769
+ * Package the updated C file for source builds. [Jamis Buck]
770
+
771
+
772
+ ## 1.2.3 / 2008-08-26
773
+
774
+ * Fix incorrect permissions on database.rb and translator.rb [Various]
775
+ * Avoid using Object#extend for greater speedups [Erik Veenstra]
776
+ * Ruby 1.9 compatibility tweaks for Array#zip [jimmy88@gmail.com]
777
+ * Fix linking against Ruby 1.8.5 [Rob Holland <rob@inversepath.com>]
778
+
779
+
780
+ ## 1.2.2 / 2008-05-31
781
+
782
+ * Make the table_info method adjust the returned default value for the rows
783
+ so that the sqlite3 change in 3.3.8 and greater can be handled
784
+ transparently [Jamis Buck <jamis@37signals.com>]
785
+ * Ruby 1.9 compatibility tweaks [Roman Le Negrate <roman2k@free.fr>]
786
+ * Various performance enhancements [thanks Erik Veenstra]
787
+ * Correct busy_handler documentation [Rob Holland <rob@inversepath.com>]
788
+ * Use int_bind64 on Fixnum values larger than a 32bit C int can take. [Rob Holland <rob@inversepath.com>]
789
+ * Work around a quirk in SQLite's error reporting by calling sqlite3_reset
790
+ to produce a more informative error code upon a failure from
791
+ sqlite3_step. [Rob Holland <rob@inversepath.com>]
792
+ * Various documentation, test, and style tweaks [Rob Holland <rob@inversepath.com>]
793
+ * Be more granular with time/data translation [Rob Holland <rob@inversepath.com>]
794
+ * Use Date directly for parsing rather than going via Time [Rob Holland <rob@inversepath.com>]
795
+ * Check for the rt library and fdatasync so we link against that when
796
+ needed [Rob Holland <rob@inversepath.com>]
797
+ * Rename data structures to avoid collision on win32. based on patch
798
+ by: Luis Lavena [Rob Holland <rob@inversepath.com>]
799
+ * Add test for defaults [Daniel Rodríguez Troitiño]
800
+ * Correctly unquote double-quoted pragma defaults [Łukasz Dargiewicz <lukasz.dargiewicz@gmail.com>]