summaryrefslogtreecommitdiff
path: root/test/misc02.sql
AgeCommit message (Collapse)AuthorLines
6 daysCLI shell: Fix a NULL deref in .read heredoc parsing which could happen on ↵stephan-0/+8
OOM or an empty heredoc. Add an empty-heredoc test. FossilOrigin-Name: edcd4c4667ae4f654b147525c7282b7d9112e9509f649a7d5cf70650bd429e37
6 daysCLI shell: do not impose the db-configured size limits for error messages ↵stephan-0/+24
unrelated to the current db connection. Add tests ensuring that that truncation doesn't happen to the affected messages. FossilOrigin-Name: 4b68e72715d2fce4bb74318b70adfcd85296af73f4681403e9c17b477fd63810
6 daysFix two dbstat bugs: NOCASE name lookups and pgsize/pgoffset fordrh-0/+108
non-default schemas. Bugs [bug:/info/2026-11-04T00:50:04Z|2026-11-04T00:50:04Z] and [bug:/info/2026-11-04T00:50:51Z|2026-11-04T00:50:51Z], respectively. FossilOrigin-Name: 4b3591c790185d5ce6184b45bde5358dec15e4f21f70c7d455bf7335a9b00428
7 daysFix the format() function (and its related printf() routines) so thatdrh-0/+8
the alternate-form flag ("#") on hexadecimal and octal outputs includes the 0x, 0X, or 0 prefix as part of the total width. [bugs:/info/2026-11-05T22:14:37Z|Bug 2026-11-05T22:14:37Z] FossilOrigin-Name: 0c67cf34dc85f28e414e4a2c5a1417be9f1ad69886b211f65e56b08be45335f3
7 daysUse a statement journal if any trigger program or FK action recursively ↵dan-0/+82
calls itself. Also tighten up the assert() used to check a statement journal is used when required. Report [bugs:/info/2026-11-04T20:32:45Z | 2026-11-04T20:32:45Z]. FossilOrigin-Name: 6c54ed03c1d5ea2a4d9e43efc76b45a4b36dd8d8f1a20e87d33f70e8455c0785
8 daysEnhance the pragma vtab so that it returns the schema hidden column.drh-0/+25
[bugs:/info/2026-11-04T20:26:34Z|Bug 2026-11-04T20:26:34Z] FossilOrigin-Name: 23a7c4d15459038eb0aea22aea9bb8d11f3072d8c869f3c14b4e1128ba03e601
8 daysEnsure that the collations used by an ORDER BY attached to a compound SELECT ↵dan-0/+50
are determined correctly in the case where the ORDER BY contains a mix of terms with and without explicit collation sequences. Report [bugs:/info/2026-11-04T01:00:55Z | 2026-11-04T01:00:55Z]. FossilOrigin-Name: 485b7480fcb80f625dabe015f56073e020b0bcb8655bce0081f542d465c8e051
10 daysRemove an unnecessary branch added by [116a220245].dan-0/+17
FossilOrigin-Name: bf5d2f9f26948bde49bf1271061553a628599def1dbf7989f84562be541e67fb
10 daysWhen comparing expressions, require that a bound value be the same type and ↵dan-0/+34
bit-for-bit identical as the value is being compared to for the comparison to succeed, just as is done for literal values. Report [bugs:/info/2026-10-28T03:40:05Z | 2026-10-28T03:40:05Z]. FossilOrigin-Name: 116a22024580363939416169f4125d204c61c8d44d186bfdf3aa826d1989faf9
10 daysFix recent test cases so that they run on all configurations. Fix a verydrh-0/+7
minor memory leak in the CLI. FossilOrigin-Name: 6911bdb236d98cf3ed5b430d3c85cd7a085617f9c6f8457f2986d172baa1fe70
10 daysFix the json_error_position() interface so that it gives the correctdrh-0/+10
offset to surplus text after valid JSON. [bugs:/info/2026-11-04T00:57:03Z|Bug 2026-11-04T00:57:03Z] FossilOrigin-Name: 5584a141c4ad76fb133429721021f5469649c94704c1bea49d160fa0598e8a90
10 daysCorrectly issue an error in an attempt to array-insert against PATH '$',drh-4/+9
which is never an array element. [bugs:/info/2026-11-05T22:16:10Z|Bug 2026-11-05T22:16:10Z] FossilOrigin-Name: b6f9eb930c3063aa2a50054daa466cc07d08de0114e8cac540167951d4532bc7
10 daysImproved parsing of unquoted PATH elements in JSON.drh-0/+40
[bugs:/info/2026-11-05T22:16:57Z|Bug 2026-11-05T22:16:57Z]. FossilOrigin-Name: 23012aa58d4460fe8ff2e6556bf747d6584d4823bedaa12fc201bf0e041d2d82
11 daysAvoid applying RealAffinity to a USING column of a FULL JOIN subquery if it ↵dan-0/+53
is materialized. Report [bugs:/info/2026-10-26T12:56:39Z | 2026-10-26T12:56:39Z]. FossilOrigin-Name: e3336dbb4630c5615feba8235ee76318b3b54645f88d031e84b3bb0ab3f3309f
11 daysFix the IN-early-out optimization for row-value cases when the NULL bypass ↵dan-0/+145
skips a required affinity on the LHS. This extends the fix in [eb40248ce6]. Report [bugs:/info/2026-11-04T00:58:35Z | 2026-11-04T00:58:35Z]. FossilOrigin-Name: b3cf602a90682e1d01080ec7f8f9ecb6eb0bb63a86bb3e5db7054458ec82cccf
11 daysFix handling of whitespace when decoding base64 in the base64 extension.drh-0/+27
[bugs:/info/2026-11-05T22:30:27Z|Bug 2026-11-05T22:30:27Z]. FossilOrigin-Name: df5ed9a17f5bf7e1f3710f64ad578e7e70add19652f0868444dcecb59923297f
11 daysFor a row-value inequality in a WHERE clause (e.g. WHERE (a, b) > (...)), do ↵dan-0/+26
not incorrectly use a collation sequence attached to the second or subsequent vector element when comparing the first elements together. Report [bugs:/info/2026-11-05T22:22:22Z | 2026-11-05T22:22:22Z]. FossilOrigin-Name: 1aa6415b8eea932687e91a3aecd0659a2e48be8fb71c60e6c6c9aa19adfed8ce
11 daysFix a problem allowing a SELECT to reuse the materialization of a view even ↵dan-0/+51
when it was materialized with only a subset of columns populated. Fix for report [bugs:/info/2026-11-06T20:21:37Z | 2026-11-06T20:21:37Z]. FossilOrigin-Name: 5f0a6953dec88fed81bcb0f753f7e319d5a4a42131910d226163b870b037d2a4
11 daysFix processing of "x IS TRUE" and similar expressions within DEFAULT ↵dan-0/+13
clauses. Report [bugs:/info/2026-11-05T22:15:24Z | 2026-11-05T22:15:24Z]. FossilOrigin-Name: 7111503e9cf26e844cc3787ad6febe3ead434da9cdc5cf1365190703f7c7aef1
12 daysFix integrity-check problem causing an invalid corruption report on a table ↵dan-0/+56
with (a) a VIRTUAL column, (b) an IPK to the right of the VIRTUAL column and (c) a DEFAULT value attached to the right most column. Report [bugs:/info/2026-11-05T22:21:35Z | 2026-11-05T22:21:35Z]. FossilOrigin-Name: c82b41a9c6623630a0cd175feaffcd42e89a84a1645c7878c425a0689ba3c060
12 daysAvoid integer overflows when calculating DESC RANGE windows. Report ↵dan-0/+25
[bugs:/info/2026-11-04T20:35:05Z | 2026-11-04T20:35:05Z]. FossilOrigin-Name: 78c82f18e32c9da4404177a25c34c03c5bbc59877b6e23772060f6c4b3516e40
12 daysWhen processing a "DEFAULT CAST(const AS type)" clause, apply the cast to ↵dan-0/+23
"type" before the affinity of the column, not after. Report [bugs:/info/2026-11-04T20:33:32Z | 2026-11-04T20:33:32Z]. FossilOrigin-Name: 30bf896242327b8e3780ff28640f7cb7d034a6487cb19c92c481a68bacd53942
12 daysDo not use the xfer optimization if there is an INDEXED BY clause attached ↵dan-0/+17
to the source table. Report [bugs:/info/2026-11-04T20:25:01Z | 2026-11-04T20:25:01Z]. FossilOrigin-Name: 668c6503e8868dc4fa642cc71ae50e6cd7b5d224eb6d89af5fb9f853669e4cdd
12 daysDo not use the xfer optimization if FKs are enabled and the target table is ↵dan-0/+33
the parent table in an FK constraint. Report [bugs:/info/2026-11-04T20:24:15Z | 2026-11-04T20:24:15Z]. FossilOrigin-Name: 0be7c6e810ea8db60fff16492a672f1300a02e525814803f802ed8191e22099c
13 daysFix bugs in and improve the interface to the ".check" command of the CLI.drh-1/+1
FossilOrigin-Name: 1a00748caf475548fb55d0362676746ad52c4dc58839dc78b412174000424522
13 daysEnsure a statement that uses REPLACE conflict handling uses a statement ↵dan-0/+40
journal if a later index is on an expression or is a partial index, in case evaluating that expression or WHERE clause raises an error after the conflicting row has been deleted. Report [bugs:/info/2026-11-04T20:23:28Z | 2026-11-04T20:23:28Z]. FossilOrigin-Name: 75757ed3a5fefb9d641f2d3b51c51907b00c3195dbb109a74be84158c21be57b
13 daysEnsure a statement is marked as may-abort if it uses an aggregate or window ↵dan-0/+102
function, or if it reads from a virtual table. Reports [bugs:/info/2026-11-04T20:27:20Z | 2026-11-04T20:27:20Z] and [bugs:/info/2026-11-04T20:31:13Z | 2026-11-04T20:31:13Z]. FossilOrigin-Name: c9c3554918eea74702b8fb8fb6d9faddd2363651eef59b4ca83b559af695aa24
13 daysTake out ".mode test" added as part of [85e50de017d28abc] since it is reallydrh-5/+5
just an alias for ".mode quote". Update recent test cases to use "quote" instead of "test". FossilOrigin-Name: 509c3506542a77d628dbab8b6ba5f7189b4712fcd8365b0b7873b875fc7ffd2a
13 daysFix a boundary case in substr().drh-0/+11
[bugs:/info/2026-11-04T20:19:36Z|Bug 2026-11-04T20:19:36Z] FossilOrigin-Name: 4ddf1761c0a0469fd0cfa9a724d700ee3158bdff48a75e6d4421e256b8045994
14 daysWhen processing immediate FK constraints, do not assume a CASCADE or SET ↵dan-0/+53
NULL action resolves all constraints if there are BEFORE triggers that will fire on the child table, as a RAISE(IGNORE) may intervene. Report [bugs:/info/2026-11-04T20:21:09Z | 2026-11-04T20:21:09Z]. FossilOrigin-Name: 0c42b4821a4469db286ed5ab90f5cd119cca815346f4b89360f8bbb6cb2b7dd6
14 daysProcess all immediate FK constraints before all deferred ones. Otherwise, if ↵dan-0/+26
there is no statement journal and a deferred FK constraint is violated before an immediate one is, the database handle is left in an inconsistent state. Report [bugs:/info/2026-11-04T20:20:23Z | 2026-11-04T20:20:23Z]. FossilOrigin-Name: 43c40c7961eed42ee5a4a6ec973a994ae1783d8960a6116fe1bfc4f4f4891a2f
14 daysWithin an EXISTS(...) subquery, do not ignore DISTINCT if there is an OFFSET ↵dan-0/+34
clause. Report [bugs:/info/2026-11-04T01:01:41Z | 2026-11-04T01:01:41Z]. FossilOrigin-Name: c41e45677d75bf49f94014bd63fc23ef0b269ae67a6053c4b7ddaa1853fb380b
14 daysDo not propagate a constant gleaned from a no affinity WHERE clause term to ↵dan-0/+26
the RHS of another WHERE clause comparison that uses TEXT affinity, just as is already done for the LHS. Report [bugs:/info/2026-11-04T01:00:08Z | 2026-11-04T01:00:08Z]. FossilOrigin-Name: 42fbc72bcf6327dc7e20579a9011988f1337567e588f74ff8d44509a68c6b21f
14 daysEnsure that expressions like "x IS (y IN ())" are equivalent to "x IS 0", ↵dan-0/+44
not "x IS FALSE". Reports [bugs:/info/2026-11-10T13:17:50Z | 2026-11-10T13:17:50Z] and [bugs:/info/2026-11-05T22:18:29Z | 2026-11-05T22:18:29Z]. FossilOrigin-Name: 3b28941b4715cee13db1c0b300b0129ca47f2f4383f769b289cfbb856c3b517c
14 daysIf the RHS of a vector IN() expression is a sub-query with a LIMIT clause, ↵dan-0/+20
do not allow the sub-query to be split into multiple separate queries each returning a single column, as such queries might return different rows than the overall query. Report [bugs:/info/2026-11-04T00:59:22Z | 2026-11-04T00:59:22Z]. FossilOrigin-Name: 177d350eb8004716077beffde65ce9f52b0e6855c38fb79b993359d9e7346ae1
14 daysFix another adverse interaction between outer join strength reduction anddrh-0/+309
query flattening, as reported by [bugs:/info/2026-11-08T01:01:03Z|bug 2026-11-08T01:01:03Z]. Also add more test cases for the previous strength-reduction-flattening fix at [8d213d8a1dc2a1b6]. FossilOrigin-Name: 89066ca37cc8eeda6e88eab0f71190921f273e82032d082994db84d2ca893946
14 daysFix an adverse interaction between outer-join strength reduction anddrh-0/+27
query flattening. [bugs:/info/2026-11-08T07:03:28Z|Bug 2026-11-08T07:03:28Z] FossilOrigin-Name: 8d213d8a1dc2a1b684cc5eee164623a33b288e54af4ab61939feeada977359d5
14 daysOnly intepret "WHERE x=y" as allowing the substitution of "x" for "y" in ↵dan-0/+38
other parts of the WHERE clause if the collation sequence used for "x=y" is either BINARY or else matches the collation sequence used where the substitution takes place. Report [bugs:/info/2026-11-04T00:57:49Z | 2026-11-04T00:57:49Z]. FossilOrigin-Name: 11076b8c605da362b24bc2bd683a23fbaa25070b980c11c47844ef01f7404c9a
14 daysEnhance the TEXT→REAL converter so that it works even for ridiculousdrh-0/+19
AI-generated floating point literals. [forum:/info/2026-11-09T04:18:04Z|Forum thread 2026-11-09T04:18:04Z]. FossilOrigin-Name: a10f9df37b6dbdf91b1413214d4909ed4c9ca94eace549bb2b48f18774c47fb5
2026-11-10Omit some test cases that require virtual tables when virtual tables aredrh-1/+2
not available. FossilOrigin-Name: 2b0e0e3d592ed453e89ee0a6043888672441e989e10d4cb947171a1738d34f8e
2026-11-09Fix duplicate test numbers in a test script. No code changes.drh-2/+2
FossilOrigin-Name: d84818861d4527749808e956490b2e01cd69829db485037fc1b88c9fd50e552f
2026-11-09Avoid truncating declared column types that end in "always". Report ↵dan-0/+56
[bugs:/info/2026-11-04T00:47:45Z | 2026-11-04T00:47:45Z]. FossilOrigin-Name: ab6f3665f960aa1270f1f780548159da7aae7920443ac680f552ce85b5f479ee
2026-11-09Have the rtree code catch SQLITE_TOOBIG and other errors in ↵dan-0/+52
sqlite3_bind_blob(). Report [bugs:/info/2026-11-03T18:57:10Z | 2026-11-03T18:57:10Z]. FossilOrigin-Name: 24525ea16360c362444d3d6f59ef638d99db1cb8773860895d6b00827b034f70
2026-11-09Ensure that affinities are applied to the excluded.* values in a DO UPDATE ↵dan-0/+92
clause associated with an IPK confict. Report [bugs:/info/2026-11-03T02:17:21Z | 2026-11-03T02:17:21Z]. FossilOrigin-Name: ed9e4654058a6bdd2825b3735a652049b53b78a1cc23be1a9e4085af3592d0ad