]>
git.ipfire.org Git - thirdparty/sqlite.git/log
drh [Fri, 6 May 2022 17:06:28 +0000 (17:06 +0000)]
Merge the 3.38.5 fix into the 3.38 subbranch of reuse-schema.
FossilOrigin-Name:
bfccca2ba37dd99c28e10364ad85a3b8d5bd9547c6159cb7a1a2aa903a508e77
drh [Fri, 6 May 2022 15:25:27 +0000 (15:25 +0000)]
drh [Fri, 6 May 2022 01:02:05 +0000 (01:02 +0000)]
Prevent an infinite loop on SQLITE_ERROR_RETRY when trying to modify a
corrupt schema while PRAGMA writeable_schema=ON is active.
dbsqlfuzz
ded83609f475cc989c7339d45efb5151c1495501
FossilOrigin-Name:
7fcdb760a4df8c5c11e94cecdc61bb8f40c86b70aa05f48e17520443a3d3b451
drh [Thu, 5 May 2022 10:04:38 +0000 (10:04 +0000)]
drh [Thu, 5 May 2022 10:03:19 +0000 (10:03 +0000)]
drh [Wed, 4 May 2022 16:46:10 +0000 (16:46 +0000)]
Merge version-3.38.4 into the reuse-schema-3.38 subbranch.
FossilOrigin-Name:
d5b0fd8434f893db444eb62e254871d92a593c3c4871641b0392453444444e15
drh [Wed, 4 May 2022 15:45:55 +0000 (15:45 +0000)]
larrybr [Wed, 4 May 2022 03:48:07 +0000 (03:48 +0000)]
larrybr [Tue, 3 May 2022 19:51:22 +0000 (19:51 +0000)]
Fix multi-byte column name rendition on .import and display of NULL in columnar modes.
FossilOrigin-Name:
f863aabe9da11b9d424362543536c929f34a0f632ba973c278d4cd56e21960fa
drh [Tue, 3 May 2022 14:26:58 +0000 (14:26 +0000)]
drh [Tue, 3 May 2022 14:25:52 +0000 (14:25 +0000)]
Fix the Bloom filter pull-down optimization so that it jumps to the correct
place if it encounters a NULL key. Fix for the bug described by
[forum:/forumpost/
2482b32700384a0f |forum thread
2482b32700384a0f ].
FossilOrigin-Name:
3dc9fc2f2de8696b67d0fc6f414398625d6fe7de108e95b443fb11e8f460b84c
drh [Sat, 30 Apr 2022 12:55:29 +0000 (12:55 +0000)]
Preserve the COLLATE operator on an index on an expression when resolving
the use of that expression into a reference to the index. See
[forum:/info/
7efabf4b03328e57 |forum thread
7efabf4b03328e57 ] for details.
FossilOrigin-Name:
ef72f9e289966d4bad5a2fa37d640f318dd972a9cf669425696e3e2a547fccb6
drh [Wed, 27 Apr 2022 13:12:16 +0000 (13:12 +0000)]
Merge the version 3.38.3 fixes into the reuse-schema-3.8 subbranch.
FossilOrigin-Name:
436d0a5837a750bfb66493de6efd0a9a5d8e8b66cedab433414a1f48921f2857
drh [Wed, 27 Apr 2022 12:03:15 +0000 (12:03 +0000)]
drh [Tue, 26 Apr 2022 20:58:48 +0000 (20:58 +0000)]
Modify utility function sqlite3SetString() so that it may be used safely on Parse.zErrMsg. Fuzzer test case "crash-
1604e5d76c92574e21e437049dab9b672e06b767 .txt".
FossilOrigin-Name:
b9c7d2c1bdc529b8c367e4a0894f4c966957cfa4b427175d5aa10af6a25f4f12
drh [Tue, 26 Apr 2022 19:48:23 +0000 (19:48 +0000)]
Cherry-pick various minor fixes from trunk into branch-3.38.
FossilOrigin-Name:
fece097c707ba563abfeca82a3d8f6fe6e90d73ae8a8ecaa4695131baa76b3b1
drh [Mon, 25 Apr 2022 23:00:56 +0000 (23:00 +0000)]
Reverse the order of two tests to stop a harmless initialized value
warning from MSAN - reported by OSSFuzz.
FossilOrigin-Name:
fb7e1a07a936857b2e9e50042a43d239817053e6dd3e36f3d2c55ec41fd3bdf3
drh [Mon, 25 Apr 2022 21:31:28 +0000 (21:31 +0000)]
Fix a problem with using multiple SQLITE_SUBTYPE function as window functions in a single query.
FossilOrigin-Name:
9caca6cb3e4eee9801cfb6f3def9b063f14c4d46269a0c4322c13a6e5f62f5a7
drh [Mon, 25 Apr 2022 21:22:59 +0000 (21:22 +0000)]
drh [Mon, 25 Apr 2022 21:21:08 +0000 (21:21 +0000)]
Fix a problem with automatic indexes introduced by
check-in [
664b461bb5063d980 ] and reported by
[forum:/forumpost/
0d3200f4f3bcd3a3 |forum post
0d3200f4f3bcd3a3 ].
FossilOrigin-Name:
4fbb9ffe72f112d5f3b02760759b90ef935ddff4089013caac3a9e222a98a304
drh [Mon, 4 Apr 2022 15:26:31 +0000 (15:26 +0000)]
Fix two minor problems in the JSON functions associated with JSON Paths
for object labels that require quoting.
FossilOrigin-Name:
4a1553b55f085163278866617deb26df12571c55fc650f8daa9392fd77c1eba9
larrybr [Wed, 30 Mar 2022 11:12:04 +0000 (11:12 +0000)]
Incorporate fix noted as absent by forum post https://sqlite.org/forum/forumpost/
aefd62fcc7ebd8b6
FossilOrigin-Name:
336851b191fe79f0282148b5c42976df9d1ce584fc93e523bc1cd2cf0c2912e7
drh [Sat, 26 Mar 2022 14:14:08 +0000 (14:14 +0000)]
Merge the version 3.38.2 patches into the reuse-schema-3.38 sub-branch.
FossilOrigin-Name:
07fc5c6eff89419ea9b8d741ea33ac853fa83bab3d78f62f652de47875c623d5
drh [Sat, 26 Mar 2022 13:51:10 +0000 (13:51 +0000)]
drh [Fri, 25 Mar 2022 19:16:26 +0000 (19:16 +0000)]
The "PRAGMA writable_schema=ON" flag should not allow OOM errors to pass
while parsing the schema.
dbsqlfuzz
9cc49e1a53e1cef8e3a1496a88c683aa20483163 .
FossilOrigin-Name:
4977d8f453bcd56fb1dfab02cc5b283fb32d402bafdf2b6112e7dd322b7c32ad
drh [Fri, 25 Mar 2022 17:43:32 +0000 (17:43 +0000)]
Do not allow an #ifdef inside of an assert(), as gcc tells us that is
not portable.
FossilOrigin-Name:
b193156c2a2407146e7cf77e237e0de0766d4ce8c673547d9f2bda4a1814959b
drh [Fri, 25 Mar 2022 01:37:26 +0000 (01:37 +0000)]
drh [Fri, 25 Mar 2022 01:31:18 +0000 (01:31 +0000)]
Fix the Bloom-filter optimization so that it does not use IS NULL or
IS NOT NULL constraints from the WHERE clause when operating on a LEFT JOIN.
[forum:/forumpost/
031e262a89b6a9d2 |Forum thread
031e262a89b6a9d2 ].
FossilOrigin-Name:
8246bfbc1643497fbbebe950b5e297fdc2a90359603e5c01a79ba67168bd7d02
drh [Tue, 22 Mar 2022 23:47:25 +0000 (23:47 +0000)]
Ensure that database corruption does not cause the cursor passed into
sqlite3BtreeDelete() to be invalid.
dbsqlfuzz
209bf3de9ee11ae440848ab9bc9c13858f9be2e4 .
FossilOrigin-Name:
780d00d4ec8c87229a639671a610c4561f2ab2b1729bb9a4386547ac18772dd4
drh [Tue, 22 Mar 2022 20:02:53 +0000 (20:02 +0000)]
Harden the xShmLock method of both the unix and Windows VFSes so that they
are robust against being invoked when the SHM file is not open.
FossilOrigin-Name:
06d4c4d17c49b98701e4b09c19c0cc68e65a0413850fda33b4991fa24fc84fa0
drh [Mon, 21 Mar 2022 18:23:24 +0000 (18:23 +0000)]
Strengthen the defenses against corrupt databases in the
sqlite3BtreeInsert() function of the btree module.
[forum:/forumpost/
c7ec29905f |Forum post
c7ec29905f ].
FossilOrigin-Name:
883fec9c3a410280bd5160acf1e103fa3c5fb6c6a003b2b99567d3b7037bc07e
drh [Mon, 21 Mar 2022 16:34:19 +0000 (16:34 +0000)]
The previous assert() fix was not correct when building with
-DSQLITE_ENABLE_OFFSET_SQL_FUNC. This is the fix.
FossilOrigin-Name:
b4210bc0ba1dddd163884b75a7bcc21d580598bdab06f938b0f84982274d6346
drh [Mon, 21 Mar 2022 13:55:56 +0000 (13:55 +0000)]
Fix the assert() that attempts to verify that the table-reference to
index-reference translator finds all required translations.
[forum:/forumpost/
929168fdd6 |Forum post
929168fdd6 ].
FossilOrigin-Name:
ccd2a2a7e197736a18dce28272fdb4acdf8447342523819c545d28e744c99562
drh [Mon, 21 Mar 2022 11:50:28 +0000 (11:50 +0000)]
Fix an assert() in sqlite3TableAffinity() that might have been false if there
was a prior syntax error in the query.
FossilOrigin-Name:
940f1a400bcd58c2dc135955f261df5f96615339645c25583947f1a7dedae4ce
drh [Sat, 19 Mar 2022 12:53:43 +0000 (12:53 +0000)]
Fix the zipfile extension so that it knows that a zero-length BLOB returns
a NULL pointer.
[forum:/forumpost/
ae86934905 |Forum post
ae86934905 ].
FossilOrigin-Name:
b75c6bad3a5a165948077026441f02188ba30c7960815486c1973e18992401b3
drh [Thu, 17 Mar 2022 11:37:02 +0000 (11:37 +0000)]
Another fix for a corner-case in sqlite_offset() - this one having to
do with computed virtual columns in a WITHOUT ROWID table. Also an
assertion fault problem with sqlite_offset().
FossilOrigin-Name:
9e72cae2f15bdd1466ff4fe1e9b747d7630b581bccd8b13d1fd69e33a81a0f72
drh [Mon, 14 Mar 2022 20:39:57 +0000 (20:39 +0000)]
drh [Sat, 12 Mar 2022 15:30:23 +0000 (15:30 +0000)]
Merge the version 3.38.1 patches into a sub-branch of reuse-schema.
FossilOrigin-Name:
934276d15ed02310e0e88cb7c3332022a5020276ed3863713cd643b023d438a8
drh [Sat, 12 Mar 2022 13:37:29 +0000 (13:37 +0000)]
drh [Fri, 11 Mar 2022 12:40:18 +0000 (12:40 +0000)]
Fix a case in fts5 where a corrupt database could cause a crash.
FossilOrigin-Name:
1894577c8eff6d0cb586cc8cd3a8f6a2b5800b9aa6391261121f4e26c9ba5f8f
drh [Thu, 10 Mar 2022 21:14:35 +0000 (21:14 +0000)]
Stronger defenses against corrupt schemas in the ALTER TABLE logic.
FossilOrigin-Name:
29744e69f473638796877bd073468046d4aeff209c0a0f30beee8c5f102112b6
larrybr [Thu, 10 Mar 2022 19:53:49 +0000 (19:53 +0000)]
Doc improvements re sqlite3_column_text*() endianness (no code change)
FossilOrigin-Name:
a37c20d40f97570575abb1f1db31dbc934300e7f2294d38fe41850baedb3766f
drh [Thu, 10 Mar 2022 16:28:13 +0000 (16:28 +0000)]
Prevent a NULL-pointer dereference when trying to parse a illegal
schema entry that contains a window function while doing a RENAME COLUMN.
[forum:/forumpost/
ec2a2e0deb |Forum post
ec2a2e0deb ].
FossilOrigin-Name:
2c393228257490efcf609f3e428f0d02c74cbea48a28763b2414e69a4ced66da
drh [Thu, 10 Mar 2022 01:15:35 +0000 (01:15 +0000)]
Check-in [
642a0b4752743216 ] fixing sqlite_dbpage is not exactly correct.
This patch should fix it.
FossilOrigin-Name:
b6c4c8a09a63693dd515d30a9f07f67ed81dc14df2586835fcb2b1bc6a9d01fc
drh [Wed, 9 Mar 2022 18:30:55 +0000 (18:30 +0000)]
drh [Wed, 9 Mar 2022 14:29:33 +0000 (14:29 +0000)]
Fix the sqlite_dbpage virtual table so that it starts a write transaction
on all attached schemas.
FossilOrigin-Name:
e92c4fdb99eb09507e6b970067c1a6f2043838f67017125851469d66c1bb5b20
drh [Tue, 8 Mar 2022 16:12:53 +0000 (16:12 +0000)]
Fix a potentially uninitialized local variable in the ".import"
command of the CLI - introduced by [
741651fd4b1b776b ]. This same change
is part of the nearby [/info/
5e30c6ea707f9d38 |"Fix compiler warnings"]
check-in.
FossilOrigin-Name:
ce9e3d903c2e5993a3fdadaf809ce2026efd1b5b933930b50dd794c9a7329cdd
drh [Mon, 7 Mar 2022 18:38:12 +0000 (18:38 +0000)]
Disable an assert in moveToRoot() when the database is corrupt.
[forum:/forumpost/
e9a176b7bd |Forum post
e9a176b7bd ].
FossilOrigin-Name:
ab744a5da80ddcd5c7cce60626d82c0e368f675b8a11bfb93b4739ea30bb07c0
drh [Mon, 7 Mar 2022 16:40:44 +0000 (16:40 +0000)]
Do not allocate new Trigger objects in the parser following a syntax error,
to avoid violating invariants associated with Expr nodes. See
[forum:/forumpost/
2024e94071ef1531 |forum thread
2024e94071ef1531 ] for more
information.
FossilOrigin-Name:
369d240455a2806afb1699273864bca3f84b163c6b1f93807c9147437001132b
drh [Mon, 7 Mar 2022 14:59:45 +0000 (14:59 +0000)]
Fix the code generated for vector IN operator constraints on virtual tables
so that they work even if the "omit" field in the sqlite3_index_info object
is off. This has apparently never worked correctly before. Presumably, nobody
has ever before written a virtual table that can use vector IN operator
constraints and that relies on bytecode to double-check the constraints.
Test cases in TH3. Problem discovered by
dbsqlfuzz
cab8e26194a40147627094f3c6849c0a7b1e0310 .
FossilOrigin-Name:
4a2040d5c78f42b892a080ba086f6ab32f59bb9c31b897af40c4359cdb17b0e9
drh [Mon, 7 Mar 2022 01:28:13 +0000 (01:28 +0000)]
Fix the .import problem in the CLI reported by
[forum:/forumpost/
72a024c957 |forum post
72a024c957 ].
FossilOrigin-Name:
d753285bcbb68bdf8f6d95a64af58b20ce6da9f048734fdb0ae49150eb7befd4
drh [Sun, 6 Mar 2022 11:44:14 +0000 (11:44 +0000)]
drh [Sun, 6 Mar 2022 00:01:10 +0000 (00:01 +0000)]
Remove a NEVER() associated with sqlite_offset()>
FossilOrigin-Name:
bf2501e26c8e4c08d679ea930bab89b9510808439aee9412ab176a9d29635cc7
drh [Sat, 5 Mar 2022 20:20:45 +0000 (20:20 +0000)]
Fix the 'localtime' modifier in date/time functions so that it preserves
fractional seconds.
[forum:/forumpost/
2ffbaa2c3fd7fb82 |Forum post
2ffbaa2c3fd7fb82 ].
FossilOrigin-Name:
6833f4aeef4923c3633978720277ccbfc63b26c96092c12a6330e6d4629b5eb5
drh [Sat, 5 Mar 2022 19:46:17 +0000 (19:46 +0000)]
drh [Sat, 5 Mar 2022 19:39:19 +0000 (19:39 +0000)]
Cherry-pick all bug fix changes since the 3.38.0 release.
FossilOrigin-Name:
45a5d5acf712cccf6d7043412fb21541ec00081d10fbd85421014677470a74f2
drh [Tue, 22 Feb 2022 20:38:45 +0000 (20:38 +0000)]
Don't reload the schema on PRAGMA database_list.
FossilOrigin-Name:
630fe446da880b5320ff014a9f7dde683664eb5cb9fd47be5b9b32ed3c590f71
drh [Tue, 22 Feb 2022 20:29:31 +0000 (20:29 +0000)]
For the "PRAGMA database_list" statement, do not check to see if the schema
is up-to-date and do not try to reload the schema.
FossilOrigin-Name:
710de6a2137c872812effa43ea888aa77d339362ca0b6c8990d4426c8fb20689
drh [Tue, 22 Feb 2022 20:04:24 +0000 (20:04 +0000)]
Merge version 3.38.0 into the reuse-schema branch.
FossilOrigin-Name:
8fe85dcdb1107a240379ea3e128c51e4be80232e632f4ec74de9b3a98e0c2061
drh [Tue, 22 Feb 2022 18:58:40 +0000 (18:58 +0000)]
drh [Tue, 22 Feb 2022 15:47:55 +0000 (15:47 +0000)]
Fix an undersized memory allocation in the test harness for RTREE. This
error was in test logic only, not in the SQLite library itself.
[forum:/forumpost/
35470a0a72a005e1 |forum post
35470a0a72a005e1 ]
FossilOrigin-Name:
7e3c9594390ac8defaf9825e14b4c19ef8c123b747971dd3d4df16110f443d3b
drh [Mon, 21 Feb 2022 16:49:49 +0000 (16:49 +0000)]
Merge the latest trunk changes into the reuse-schema branch.
FossilOrigin-Name:
b3c26f4a34ab1557beddffccb818218a583c4daf078d338450eb79369fc2adf4
drh [Mon, 21 Feb 2022 14:30:59 +0000 (14:30 +0000)]
Fix compiler warnings for older compilers (ex: gcc 4.0.1 powerpc-apple-darwin).
FossilOrigin-Name:
5c188243d769681c68938c8e432155c8ec838d9e32fe8d1b12286ebc9d0e87f1
drh [Mon, 21 Feb 2022 13:44:51 +0000 (13:44 +0000)]
Remove stray tab characters from auxiliary source code files.
FossilOrigin-Name:
e25e33582b69289a2c3a6bc403e3911de22a3b529db1a565efb9f1af01b9e382
drh [Mon, 21 Feb 2022 13:02:23 +0000 (13:02 +0000)]
Add SQLITE_OMIT_JSON to the compile-time option test sequence.
FossilOrigin-Name:
f36325a6e21c4d3b6ab48ebfb2efabda089281344d1e61949d1c9290e88395b1
drh [Mon, 21 Feb 2022 00:23:49 +0000 (00:23 +0000)]
Do not allow error messages from sqlite3NestedParse() to leak up into the
main parse.
FossilOrigin-Name:
9c4e21abdca664d6b7bcf0043fe9ec05ef8b2949ba6ee7208abaaec1ff4ed679
larrybr [Sat, 19 Feb 2022 21:25:48 +0000 (21:25 +0000)]
drh [Sat, 19 Feb 2022 15:57:28 +0000 (15:57 +0000)]
Add a NEVER() to a branch that is unreachable for STAT4.
FossilOrigin-Name:
e4e97505af4016c48465009686bfeffe9627e225a5b2082a5bf4baeee40db5c9
drh [Thu, 17 Feb 2022 17:24:39 +0000 (17:24 +0000)]
Enhance the documentation on sqlite3_stmt_readonly() to explain that
EXPLAIN and EXPLAIN QUERY PLAN do not affect the return value. Add test
cases to verify this. Add new test cases and requirements marks for
complete requirements test coverage on this interface.
FossilOrigin-Name:
a6fbb7ba0583b3981e2d8b809006b902b3e97e516dbd3ab7d905c5ea73df2272
drh [Thu, 17 Feb 2022 14:33:13 +0000 (14:33 +0000)]
Remove references to the now-defunct SQLITE_ENABLE_JSON1 compile-time option.
FossilOrigin-Name:
db950192c93db7f5eb4ffcce41d0ea374c58450405945cfb8ebe0c93070b7c48
drh [Thu, 17 Feb 2022 14:29:39 +0000 (14:29 +0000)]
Fix a testing error on Windows that was recently added to shell5.test.
FossilOrigin-Name:
6cace54320997dcbbdd49017f20eecafa88ebcc4b264ee800954f25d9605023d
drh [Wed, 16 Feb 2022 15:11:01 +0000 (15:11 +0000)]
Make the sqlite3_error_offset() interface accessible from TCL using the
new "erroroffset" method on the sqlite3 object.
FossilOrigin-Name:
3454a1222bedefba527af98c0284ed0bfbd28dd941885d9a0ac9a44aea2fc8ec
drh [Tue, 15 Feb 2022 20:56:16 +0000 (20:56 +0000)]
Merge the latest trunk enhancements into the reuse-schema branch.
FossilOrigin-Name:
b9ba43fcb3b727fc344ab754a0132a62ff640daff8cc2ca17fd41e57fba2168d
drh [Tue, 15 Feb 2022 13:23:09 +0000 (13:23 +0000)]
Improved rendering of floating point numbers without a fractional part in
".dump" output from the CLI.
[forum:/forumpost/
550d877659f37cb2 |Forum post
550d877659f37cb2 ].
FossilOrigin-Name:
9edaeed56f2282fd4da935454178c38ab49d259aed96d4e720aae09050a53006
drh [Tue, 15 Feb 2022 11:46:31 +0000 (11:46 +0000)]
New assert() statements to help prove correctness of memjournal.c.
FossilOrigin-Name:
d74ec88c2f9b9e056988add8322186750229e14a609d1a6969ba393a5b8c5174
drh [Mon, 14 Feb 2022 21:11:17 +0000 (21:11 +0000)]
Generalize the in-memory journal so that it is able to accept writes that
begin at any offset less than or equal to the current file size.
FossilOrigin-Name:
c039d5476e0836c16d8c1ad99a2620f7fd04eb4b0e5dcb2246b42dde2ae1f95a
larrybr [Mon, 14 Feb 2022 18:55:19 +0000 (18:55 +0000)]
CLI .import can auto-rename non-unique column names when it creates a new table
FossilOrigin-Name:
4b5d07ea7e6f5d6f1279c88bc474ee4bc8bd2cebe38a268f211f47e44569e4b1
drh [Mon, 14 Feb 2022 18:18:56 +0000 (18:18 +0000)]
Minor correction to the early corruption detection added by
[
a6fda39e81d0da98 |check-in
a6fda39e81d0da98 ] so that it works even if
the page being cleared in page 1 of the database.
FossilOrigin-Name:
a5ec16907ef6ab50e041101d87c5756c71469923872a86c3ab383f188673d7a5
drh [Mon, 14 Feb 2022 13:53:49 +0000 (13:53 +0000)]
Fix a bad assert() (it needs an "||CORRUPT_DB" term) in b-tree, discovered
by dbsqlfuzz.
FossilOrigin-Name:
f5f263cc626d6a8bea3e85e28bb716e3eac0d9cd199cc060c0c8b0c77b280a45
larrybr [Mon, 14 Feb 2022 01:12:46 +0000 (01:12 +0000)]
CLI's .import column rename made more minimal, and reports renames.
FossilOrigin-Name:
c626cff7f99ec502ebd46f9cdafc3d088697544ef5d6559b6b3ae85679b4f9fa
larrybr [Sun, 13 Feb 2022 22:18:22 +0000 (22:18 +0000)]
Sync w/trunk, fix zAutoColumns placement blunder, all to pass all TCL tests
FossilOrigin-Name:
67dc59f46d742ad69742fb34540a3074af163a3f1a0f9093f83db2276bf944ca
dan [Sat, 12 Feb 2022 18:56:24 +0000 (18:56 +0000)]
Do not run merge1.test with SQLITE_OMIT_VIRTUALTABLE builds.
FossilOrigin-Name:
bf8dbfd499e732f14c7a8efee527e8ce155937dbb2a3e85213f8aa64ac497189
dan [Sat, 12 Feb 2022 16:02:37 +0000 (16:02 +0000)]
Fix a possible user-after-free in ALTER TABLE found by asan.
FossilOrigin-Name:
9252619d410293ddefd108f5cf81b6fb4932bd3f2ceaaa92abb7542e34f66111
dan [Sat, 12 Feb 2022 13:45:02 +0000 (13:45 +0000)]
Update fuzz.test to account for a change in error message made in the core.
FossilOrigin-Name:
c57601b51f9b59e9d8f0eb06580fa14f49525e56bd0190c02865e478bd1f48e7
dan [Sat, 12 Feb 2022 13:37:27 +0000 (13:37 +0000)]
Avoid dropping SQLITE_TOOBIG errors in the quote() function.
FossilOrigin-Name:
115c3051a1ff7567e84f14fc4c49efe61bc2850248533449b0195c305ab6516e
larrybr [Sat, 12 Feb 2022 13:12:03 +0000 (13:12 +0000)]
For .import auto-column, aid build-time override of rename decoration.
FossilOrigin-Name:
433e5ead2b711d1e3b0b62cf8cb5a8a65e2474c68ef2173317ed4323fc8bdc58
larrybr [Sat, 12 Feb 2022 10:48:42 +0000 (10:48 +0000)]
Fix auto-column bug noted by post https://sqlite.org/forum/forumpost/
d102c15d63
FossilOrigin-Name:
689137e1b5bc78b0f16e5db86d16415b9fa77d22ded59e93d75e7033b465e673
larrybr [Sat, 12 Feb 2022 02:15:37 +0000 (02:15 +0000)]
Sync w/trunk, allow build-time override of auto-column decorating character
FossilOrigin-Name:
caaef4c592c980889efb349fa73b61303ec493172d90cd67d54ffde0855e4138
drh [Fri, 11 Feb 2022 21:20:46 +0000 (21:20 +0000)]
Fix a test in without_rowid1.test so that it is disabled without
ALTER TABLE support, as it uses ALTER TABLE.
FossilOrigin-Name:
ca22a64e6f05a6688974f4cff1a0ff2c873aad1947f3cf6ffaeee8bb074b2627
dan [Fri, 11 Feb 2022 19:41:03 +0000 (19:41 +0000)]
Update some OOM tests of the ALTER TABLE command to account for an error message which may be returned if opening the temp db fails.
FossilOrigin-Name:
3409fd4150df059d7308f79fa3672a330af9cefe2ad9120c3da5ef1413921e96
drh [Fri, 11 Feb 2022 17:47:58 +0000 (17:47 +0000)]
Load recent dbsqlfuzz finds into test/fuzzdata8.db.
FossilOrigin-Name:
b275ad250d8aa286829647967ab7e75fcd2b5674caab1a34eab59d8486a34cd5
drh [Fri, 11 Feb 2022 17:47:25 +0000 (17:47 +0000)]
Reference the wayback machine for the dead hyperlink to the MS support
page in the comments about why the extra typedef for va_arg(). No code
changes.
FossilOrigin-Name:
ab1a9b5b78de7c00b38357b1df08e82ce5608a14f8c675ac20c5f2dad5212f50
drh [Fri, 11 Feb 2022 17:33:02 +0000 (17:33 +0000)]
Fix an assert() in the pager by adding "|| CORRUPT_DB", in as much as the
assert() is not necessarily true if the database size in the header is
wrong. dbsqlfuzz
f2f996065b90988aa9b0ae425b66dbb296546a08 .
FossilOrigin-Name:
a51402e8c29fad2b24e32de55b10691fb0ebd6c2cebac941e43e54be211d5d39
dan [Fri, 11 Feb 2022 16:10:18 +0000 (16:10 +0000)]
Fix a problem in [
c006515ae6faff65 ] causing an assert() to fail with some build configurations.
FossilOrigin-Name:
d7ff262d6d1fd8b855bcb8f6f54ab1833663a4d8187701ddf045f6b5a62a5d1d
drh [Fri, 11 Feb 2022 14:08:05 +0000 (14:08 +0000)]
Use the enhanced SQLITE_TESTCTRL_LOCALTIME_FAULT (2) capability to do better
testing of the 'localtime' and 'utc' modifiers to date/time functions.
FossilOrigin-Name:
f38071946ac2e5bb61e6c0620507e4c94464999ac700d86c1a704b94eb1c009a
larrybr [Fri, 11 Feb 2022 13:40:25 +0000 (13:40 +0000)]
Upon .import column renaming, issue message saying so. Test this.
FossilOrigin-Name:
8b6ca9304bff9a5b2897a6517ce77e4cd32f337b6c849b73ead5f757228d8ac8
drh [Fri, 11 Feb 2022 12:06:37 +0000 (12:06 +0000)]
Fix the bind2.test test script so that it works even if
SQLITE_ENABLE_PREUPDATE_HOOK is not defined.
Fix for test-case breakage from check-in [
c006515ae6faff65 ].
FossilOrigin-Name:
937d3a45b3fef354dbdea2085fbb7d9c752a96e8ebb62f61931deb5a64132946
drh [Fri, 11 Feb 2022 11:37:12 +0000 (11:37 +0000)]
Work around the MSVC bug that prevents the use of function pointer types in
the second argument of va_arg() by adding a typedef.
FossilOrigin-Name:
eae3ab0a050079d050f339b2510eebd55afe4464e9b410ddacb7523f89981144
larrybr [Fri, 11 Feb 2022 01:21:09 +0000 (01:21 +0000)]
CLI auto-column rename revamped after forum discussion.
FossilOrigin-Name:
2da1f8e45eb0cb1ead6049df6a31a903bfad5a7abd27e92cd3dac25fe355aec3
drh [Thu, 10 Feb 2022 23:12:58 +0000 (23:12 +0000)]
Fix SQLITE_TESTCTRL_LOCALTIME_FAULT so that it works even if mutexes are
enabled.
FossilOrigin-Name:
64537a0669553e8a6b610b9e9703ec084472516c86cfc22a7a6c73b6c66131ee