pedrocarlo
2e722af93c
proof issue 1710
2025-10-13 20:51:21 -03:00
pedrocarlo
83dde9b55c
fix backwards compatible rowid alias behaviour
2025-10-13 20:41:45 -03:00
pedrocarlo
0ef5ec007c
remove cfg for MAP_ANONYMOUS
2025-10-13 18:05:18 -03:00
Bob Peterson
4d843804b7
Add --disable-integrity-check option to simulator
...
Miri can't execute sqlite via the FFI, so this needs to be configurable
2025-10-13 14:54:16 -05:00
Bob Peterson
3d4c10df40
Document using Miri to run the simulator
2025-10-13 14:54:16 -05:00
Bob Peterson
dfc77b0350
Non-Unix arena: use zeroed alloc to avoid UB
...
Reads to the arena were flagged by Miri as UB since it contained
uninitialized memory
2025-10-13 14:54:16 -05:00
Bob Peterson
74ef9ad5ca
Drop weak in TursoRwLock::read's compare_exchange
...
compare_exchange_weak can spuriously fail, which Miri obliges us with,
causing a read deadlock
2025-10-13 14:54:16 -05:00
Bob Peterson
ce2f286df0
Replace git shell commands with std shims
...
gix doesn't work here, since while it's pure Rust, it has a
non-configurable dependency on crates using inline assembly, which Miri
does not support. This commit is a bit of a hack, and only works in
non-bare git repos without e.g packed-refs.
2025-10-13 14:54:16 -05:00
Bob Peterson
cd56f52bd6
Add cfg attributes for running under Miri
2025-10-13 14:54:16 -05:00
pedrocarlo
2798fafa6c
proof issue 1454
2025-10-13 16:14:29 -03:00
Bob Peterson
bd62c80536
Implement generic file lock/unlock as a noop
2025-10-13 12:54:10 -05:00
Pere Diaz Bou
bc05497d99
core/mvcc: implement CursorTrait on MVCC cursor
2025-10-13 19:26:18 +02:00
pedrocarlo
45567e6837
fix alter table shadowing to modify index column name on rename and alter
2025-10-13 14:02:26 -03:00
pedrocarlo
bfeccf6543
integrate DropIndex in query generator
2025-10-13 13:56:36 -03:00
Kyle Kelley
f7ba978701
Recommend 0.2 in rust bindings
...
Bump version number for crate docs starter setup
2025-10-13 09:33:58 -07:00
pedrocarlo
b2e54d9816
add Drop Index to simulator model
2025-10-13 13:32:16 -03:00
pedrocarlo
294f842e62
DROP INDEX sql generation
2025-10-13 13:23:44 -03:00
Pekka Enberg
42de657b5c
Merge 'Fix typo in manual.md' from Yevhen Kostryka
...
In `SELECT` section there is `GROU BY` instead of `GROUP BY`
Closes #3710
2025-10-13 18:55:07 +03:00
Yevhen Kostryka
08efce510e
Fix typo in manual.md
...
In `SELECT` section there is `GROU BY` instead of `GROUP BY`
2025-10-13 18:45:31 +03:00
Pekka Enberg
1c9eaa3d95
Merge 'Restrict joins to max 63 tables and allow arbitrary number of table columns' from Jussi Saurio
...
Closes #2076
Closes #2075
Closes #3705
2025-10-13 18:23:11 +03:00
Jussi Saurio
9d6066381e
sql_generation: Fix implementation of LTValue and GTValue
...
Current implementation can generate strings with control characters
like null terminators that result in parse errors.
2025-10-13 17:32:52 +03:00
Pavan-Nambi
41b7693c13
add test
2025-10-13 19:12:35 +05:30
Pavan-Nambi
6b3fcfd3d4
explicit column aliase must have preference
2025-10-13 19:11:55 +05:30
Pavan-Nambi
57a06835bf
add test and fmt and clippy
...
i was stupid
remove comment
2025-10-13 18:07:51 +05:30
Jussi Saurio
c54e150a52
Merge 'Fix: Table entry is not removed from sqlite_schema when a table is dropped' from
...
Fixes #3682 .
Ignore case of table name when dropping table.
Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com >
Closes #3683
2025-10-13 15:02:29 +03:00
Jussi Saurio
c12c1db275
Merge 'Simulator: persist files in sim memory IO for integrity check' from Pedro Muniz
...
If we don't persist the files, rusqlite will open an empty file and
perform integrity check on it.
Reviewed-by: bit-aloo (@Shourya742)
Closes #3676
2025-10-13 14:23:53 +03:00
Jussi Saurio
c2deee1ce5
Merge 'Simulator: ALTER TABLE' from Pedro Muniz
...
Adds `ALTER TABLE` to the simulator. Currently, there are no properties
that generate `ALTER TABLE`. The query is only generated in
`Property::Query` or in extension queries.
Conditions to generate `ALTER TABLE`:
- In differential testing, do not generate `ALTER COLUMN` as SQLite does
not support it.
- If there is only 1 column, or all columns are present in indexes, do
not generate a `DROP COLUMN` as it would be an error in the database
- if there are no tables, obviously do not generate `ALTER TABLE`
Some fixes:
- handle NULL generation in `GTValue` and `LTValue`, as we now have to
handle nulls due to `ADD COLUMN` adding cols with NULL
- correctly compare NULLs in `binary_compare`
Closes #3650
2025-10-13 14:16:49 +03:00
Jussi Saurio
2baea154b0
clippy
2025-10-13 14:11:18 +03:00
Jussi Saurio
3669437482
Add vibecoded tests for ColumnUsedMask
2025-10-13 14:03:34 +03:00
Jussi Saurio
e055ed9a8d
Allow arbitrarily many columns in a table
...
Use roaring bitmaps because ColumnUsedMask is likely to be
sparsely populated.
2025-10-13 13:30:26 +03:00
Jussi Saurio
59a1c2ae2e
Disallow joining more than 63 tables
...
Returns an error instead of panicing
2025-10-13 13:30:03 +03:00
Pekka Enberg
bd97c117ed
whopper: Remove debug printouts
2025-10-13 12:19:09 +03:00
Pekka Enberg
77492641db
Merge 'Move all checksum tests behind the feature flag' from Avinash Sajjanshetty
...
Closes #3704
2025-10-13 11:46:56 +03:00
Avinash Sajjanshetty
4a29694475
rename checksums tests appropriately
2025-10-13 13:48:07 +05:30
Avinash Sajjanshetty
ee479d2e52
Move all checksum tests behind the feature flag
2025-10-13 13:47:25 +05:30
Jussi Saurio
523b155df1
Fix another "should have been rewritten" translation panic
...
Closes #2158
2025-10-13 11:02:42 +03:00
Pekka Enberg
9e7c1e9061
Merge 'core/vdbe: Improve IdxDelete error messages with context' from Pekka Enberg
...
We currently return the exact same error from two different IdxDelete
paths. Improve the messages with context about what we're doing to make
this error more debuggable.
Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com >
Closes #3699
2025-10-13 10:19:08 +03:00
Pekka Enberg
9eeefa27e9
Merge 'stress: Add busy timeout support with 5 second default' from Pekka Enberg
...
Add `--busy-timeout` command-line option to turso-stress with a default
value of 5000 ms. This helps prevent spurious database busy errors
during concurrent stress testing and ensure that integrity checks are
not skipped because of concurrent writes.
Closes #3696
2025-10-13 10:19:01 +03:00
Pekka Enberg
49bf81ab8b
Merge 'Add WINDOW functions to COMPAT.md' from Jussi Saurio
...
Closes #3701
2025-10-13 10:18:54 +03:00
Jussi Saurio
171bcd83ec
COMPAT.MD: note about WINDOW functions
2025-10-13 10:16:13 +03:00
Pekka Enberg
2a02cafc73
core/vdbe: Improve IdxDelete error messages with context
...
We currently return the exact same error from two different IdxDelete
paths. Improve the messages with context about what we're doing to make
this error more debuggable.
2025-10-13 09:42:04 +03:00
Pekka Enberg
7b1b37095d
stress: Add busy timeout support with 5 second default
...
Add `--busy-timeout` command-line option to turso-stress with a default
value of 5000 ms. This helps prevent spurious database busy errors
during concurrent stress testing and ensure that integrity checks are
not skipped because of concurrent writes.
2025-10-13 09:11:10 +03:00
Pekka Enberg
eb000c3d0f
Merge 'core/translate: Add if alias and allow iff to have more arguments' from Pavan Nambi
...
closes #3689
Closes #3690
2025-10-13 08:53:00 +03:00
pedrocarlo
c0f35cc17d
disable ALTER COLUMN due to incompatibility with SQLITE INTEGRITY CHECK
2025-10-13 02:34:43 -03:00
pedrocarlo
773fa28063
workaround in sqlite for schema changes become visible to other connections
2025-10-13 02:34:43 -03:00
pedrocarlo
dca1137f81
rusqlite stop trying to get rows when we error with InvalidColumnIndex
2025-10-13 02:34:43 -03:00
pedrocarlo
d99e3f590f
ALTER TABLE should be added to is_ddl
2025-10-13 02:34:43 -03:00
pedrocarlo
5f65196115
fix load_bug
2025-10-13 02:34:43 -03:00
pedrocarlo
b6c5fee300
do not count certain interactions in the InteractionPlan and correctly report the length when shrinking
2025-10-13 02:34:43 -03:00
pedrocarlo
49e96afd39
generate ALTER COLUMN
2025-10-13 02:34:43 -03:00