From 7fd9df5d6aa9944553e5c22bf09e107943e99dc4eccc566969ccaf8354f07d90 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 5 Sep 2017 14:24:08 +0000 Subject: [PATCH 1/4] - Enable fts3_tokenizer() (disabled by default with 3.11.0) OBS-URL: https://build.opensuse.org/package/show/server:database/sqlite3?expand=0&rev=196 --- sqlite3.changes | 5 +++++ sqlite3.spec | 1 + 2 files changed, 6 insertions(+) diff --git a/sqlite3.changes b/sqlite3.changes index bab07ad..5c49a83 100644 --- a/sqlite3.changes +++ b/sqlite3.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 5 14:22:15 UTC 2017 - mpluskal@suse.com + +- Enable fts3_tokenizer() (disabled by default with 3.11.0) + ------------------------------------------------------------------- Wed Aug 30 07:46:10 UTC 2017 - astieger@suse.com diff --git a/sqlite3.spec b/sqlite3.spec index d4bc526..92e50ae 100644 --- a/sqlite3.spec +++ b/sqlite3.spec @@ -126,6 +126,7 @@ export CFLAGS="%{optflags} \ -DSQLITE_SOUNDEX \ -DSQLITE_ENABLE_UNLOCK_NOTIFY \ -DSQLITE_SECURE_DELETE \ + -DSQLITE_ENABLE_FTS3_TOKENIZER \ " %configure \ --disable-static \ From 0f1a31ab67752c0c37dcfa651f150d135680f29d7eff812f384a3b907d3e5b79 Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Tue, 5 Sep 2017 14:32:07 +0000 Subject: [PATCH 2/4] - Revert last change. OBS-URL: https://build.opensuse.org/package/show/server:database/sqlite3?expand=0&rev=197 --- sqlite3.changes | 5 +++++ sqlite3.spec | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/sqlite3.changes b/sqlite3.changes index 5c49a83..d1318de 100644 --- a/sqlite3.changes +++ b/sqlite3.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 5 14:32:01 UTC 2017 - max@suse.com + +- Revert last change. + ------------------------------------------------------------------- Tue Sep 5 14:22:15 UTC 2017 - mpluskal@suse.com diff --git a/sqlite3.spec b/sqlite3.spec index 92e50ae..d4bc526 100644 --- a/sqlite3.spec +++ b/sqlite3.spec @@ -126,7 +126,6 @@ export CFLAGS="%{optflags} \ -DSQLITE_SOUNDEX \ -DSQLITE_ENABLE_UNLOCK_NOTIFY \ -DSQLITE_SECURE_DELETE \ - -DSQLITE_ENABLE_FTS3_TOKENIZER \ " %configure \ --disable-static \ From 4e24da48978e296f81fe0996b6ad6b6321a1b4db501ec073e9cb9e522b7d29c7 Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Tue, 5 Sep 2017 14:32:47 +0000 Subject: [PATCH 3/4] Revert OBS-URL: https://build.opensuse.org/package/show/server:database/sqlite3?expand=0&rev=198 --- sqlite3.changes | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sqlite3.changes b/sqlite3.changes index d1318de..bab07ad 100644 --- a/sqlite3.changes +++ b/sqlite3.changes @@ -1,13 +1,3 @@ -------------------------------------------------------------------- -Tue Sep 5 14:32:01 UTC 2017 - max@suse.com - -- Revert last change. - -------------------------------------------------------------------- -Tue Sep 5 14:22:15 UTC 2017 - mpluskal@suse.com - -- Enable fts3_tokenizer() (disabled by default with 3.11.0) - ------------------------------------------------------------------- Wed Aug 30 07:46:10 UTC 2017 - astieger@suse.com From 3cfe68017ab7a73dd950d6a3b5caa52e14b584b4f9212666121f5ca1108ad818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 25 Oct 2017 08:51:42 +0000 Subject: [PATCH 4/4] - Update to version 3.21.0 * Take advantage of the atomic-write capabilities in the F2FS filesystem when available, for greatly reduced transaction overhead. This currently requires the SQLITE_ENABLE_BATCH_ATOMIC_WRITE compile-time option. * Allow ATTACH and DETACH commands to work inside of a transaction. * Allow WITHOUT ROWID virtual tables to be writable if the PRIMARY KEY contains exactly one column. * The "fsync()" that occurs after the header is written in a WAL reset now uses the sync settings for checkpoints. This means it will use a "fullfsync" on macs if PRAGMA checkpoint_fullfsync set on. * The sqlite3_sourceid() function tries to detect if the source code has been modified from what is checked into version control and if there are modifications, the last four characters of the version hash are shown as "alt1" or "alt2". The objective is to detect accidental and/or careless edits. A forger can subvert this feature. * Improved de-quoting of column names for CREATE TABLE AS statements with an aggregate query on the right-hand side. * Fewer "stat()" system calls issued by the unix VFS. * Enhanced the LIKE optimization so that it works with an ESCAPE clause. * Enhanced PRAGMA integrity_check and PRAGMA quick_check to detect obscure row corruption that they were formerly missing. Also update both pragmas so that they return error text rather than SQLITE_CORRUPT when encountering corruption in records. * The query planner now prefers to implement FROM-clause OBS-URL: https://build.opensuse.org/package/show/server:database/sqlite3?expand=0&rev=199 --- sqlite-autoconf-3200100.tar.gz | 3 -- sqlite-autoconf-3210000.tar.gz | 3 ++ sqlite-doc-3200100.zip | 3 -- sqlite-doc-3210000.zip | 3 ++ sqlite3.changes | 78 ++++++++++++++++++++++++++++++++++ sqlite3.spec | 4 +- 6 files changed, 86 insertions(+), 8 deletions(-) delete mode 100644 sqlite-autoconf-3200100.tar.gz create mode 100644 sqlite-autoconf-3210000.tar.gz delete mode 100644 sqlite-doc-3200100.zip create mode 100644 sqlite-doc-3210000.zip diff --git a/sqlite-autoconf-3200100.tar.gz b/sqlite-autoconf-3200100.tar.gz deleted file mode 100644 index a1e69ce..0000000 --- a/sqlite-autoconf-3200100.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ec66595b29bc0798b023a5122021ea646ab4fa9e2f735937c5426feeba950742 -size 2565638 diff --git a/sqlite-autoconf-3210000.tar.gz b/sqlite-autoconf-3210000.tar.gz new file mode 100644 index 0000000..1ea3cc6 --- /dev/null +++ b/sqlite-autoconf-3210000.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7dd516775005ad87a57f428b6f86afd206cb341722927f104d3f0cf65fbbbe3 +size 2568942 diff --git a/sqlite-doc-3200100.zip b/sqlite-doc-3200100.zip deleted file mode 100644 index 270503e..0000000 --- a/sqlite-doc-3200100.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0caf410e604411fd925c699d5fcb1d846f9297cdf2e18251eceb3e5708301e85 -size 5759028 diff --git a/sqlite-doc-3210000.zip b/sqlite-doc-3210000.zip new file mode 100644 index 0000000..8b7d017 --- /dev/null +++ b/sqlite-doc-3210000.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:78c2fc9b144b168c7df53ff192c84fa7c29bcc44324b48b0f809a13810bc6c36 +size 5800635 diff --git a/sqlite3.changes b/sqlite3.changes index bab07ad..4474936 100644 --- a/sqlite3.changes +++ b/sqlite3.changes @@ -1,3 +1,81 @@ +------------------------------------------------------------------- +Wed Oct 25 08:41:37 UTC 2017 - idonmez@suse.com + +- Update to version 3.21.0 + * Take advantage of the atomic-write capabilities in the F2FS + filesystem when available, for greatly reduced transaction + overhead. This currently requires the + SQLITE_ENABLE_BATCH_ATOMIC_WRITE compile-time option. + * Allow ATTACH and DETACH commands to work inside of a + transaction. + * Allow WITHOUT ROWID virtual tables to be writable if the + PRIMARY KEY contains exactly one column. + * The "fsync()" that occurs after the header is written in a + WAL reset now uses the sync settings for checkpoints. + This means it will use a "fullfsync" on macs if PRAGMA + checkpoint_fullfsync set on. + * The sqlite3_sourceid() function tries to detect if the source + code has been modified from what is checked into version + control and if there are modifications, the last four + characters of the version hash are shown as "alt1" or + "alt2". The objective is to detect accidental and/or + careless edits. A forger can subvert this feature. + * Improved de-quoting of column names for CREATE TABLE AS + statements with an aggregate query on the right-hand side. + * Fewer "stat()" system calls issued by the unix VFS. + * Enhanced the LIKE optimization so that it works with an + ESCAPE clause. + * Enhanced PRAGMA integrity_check and PRAGMA quick_check + to detect obscure row corruption that they were formerly + missing. Also update both pragmas so that they return + error text rather than SQLITE_CORRUPT when encountering + corruption in records. + * The query planner now prefers to implement FROM-clause + subqueries using co-routines rather using the query + flattener optimization. Support for the use of + co-routines for subqueries may no longer be disabled. + * Pass information about !=, IS, IS NOT, NOT NULL, and + IS NULL constraints into the xBestIndex method of virtual tables. + * Enhanced the CSV virtual table so that it accepts the + last row of input if the final new-line character is missing. + * Remove the rarely-used "scratch" memory allocator. + Replace it with the SQLITE_CONFIG_SMALL_MALLOC configuration + setting that gives SQLite a hint that large memory allocations + should be avoided when possible. + * Added the swarm virtual table to the existing union virtual + table extension. + * Added the sqlite_dbpage virtual table for providing direct + access to pages of the database file. The source code is + built into the amalgamation and is activated using the + -DSQLITE_ENABLE_DBPAGE_VTAB compile-time option. + * Add a new type of fts5vocab virtual table - "instance" + - that provides direct access to an FTS5 full-text + index at the lowest possible level. + * Miscellaneous microoptimizations reduce CPU usage by about 2.1%. + + Bug fixes + * Fix a faulty assert() statement discovered by OSSFuzz. + Ticket cb91bf4290c211d + * Fix an obscure memory leak in sqlite3_result_pointer(). + Ticket 7486aa54b968e9b + * Avoid a possible use-after-free error by deferring schema + resets until after the query planner has finished running. + Ticket be436a7f4587ce5 + * Only use indexes-on-expressions to optimize ORDER BY or + GROUP BY if the COLLATE is correct. Ticket e20dd54ab0e4383 + * Fix an assertion fault that was coming up when the expression + in an index-on-expressions is really a constant. Ticket aa98619ad08ddca + * Fix an assertion fault that could occur following PRAGMA + reverse_unordered_selects. Ticket cb91bf4290c211d + * Fix a segfault that can occur for queries that use table-valued + functions in an IN or EXISTS subquery. Ticket b899b6042f97f5 + * Fix a potential integer overflow problem when compiling a particular + horrendous common table expression. This was another problem discovered + by OSSFuzz. Check-in 6ee8cb6ae5. + * Fix a potential out-of-bound read when querying a corrupt + database file, a problem detected by Natalie Silvanovich of + Google Project Zero. Check-in 04925dee41a21f. + ------------------------------------------------------------------- Wed Aug 30 07:46:10 UTC 2017 - astieger@suse.com diff --git a/sqlite3.spec b/sqlite3.spec index d4bc526..4b1b6c2 100644 --- a/sqlite3.spec +++ b/sqlite3.spec @@ -17,9 +17,9 @@ %define oname sqlite -%define tarversion 3200100 +%define tarversion 3210000 Name: sqlite3 -Version: 3.20.1 +Version: 3.21.0 Release: 0 Summary: Embeddable SQL Database Engine License: SUSE-Public-Domain