Files
turso/testing
Jussi Saurio f396528d53 Merge 'Fix DELETE not emitting constant WhereTerms' from Pedro Muniz
Fixes DELETE not emitting conditional jumps at all if the associated
WhereTerm is a constant, e.g.
```sql
limbo> create table t(x);
limbo> explain DELETE FROM t WHERE 5-5;
addr  opcode             p1    p2    p3    p4             p5  comment
----  -----------------  ----  ----  ----  -------------  --  -------
0     Init               0     7     0                    0   Start at 7
1     OpenWrite          0     2     0                    0   root=2; t
2     Rewind             0     6     0                    0   Rewind table t
3       RowId            0     1     0                    0   r[1]=t.rowid
4       Delete           0     0     0                    0
5     Next               0     3     0                    0
6     Halt               0     0     0                    0
7     Transaction        0     1     0                    0   write=true
8     Goto               0     1     0                    0
```
I was adding more stuff to the simulator in a Branch of mine, and I
caught this error with delete. Upstreaming the fix here. As we do with
Update, I added the translation step for the `WhereTerms` of the query.
Edit: Closes #1732. Closes #1733. Closes #1734. Closes #1735. Closes
#1736. Closes #1738. Closes #1739. Closes #1740.
Edit: Also pushes constant where term translation to `init_loop` for
Update and Select as well.

Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com>

Closes #1746
2025-06-20 22:00:32 +03:00
..
2024-08-03 12:16:34 +03:00
2025-06-11 18:39:06 +02:00
wip
2025-06-11 14:19:04 -03:00
2025-02-09 22:01:33 +04:00
2025-01-19 00:39:10 +05:30
2025-01-21 00:29:23 +05:30
2024-12-30 17:02:31 +05:30
2025-06-17 19:33:23 +02:00
2025-06-11 18:39:06 +02:00
2025-06-17 19:33:23 +02:00
2025-03-30 18:58:38 +03:00
2025-05-08 22:22:55 +08:00
2025-05-11 23:47:30 +08:00
2025-06-17 19:33:23 +02:00
2025-04-15 12:45:46 -03:00
2025-02-04 21:02:51 +05:30
2025-06-17 19:33:23 +02:00
2024-10-05 18:25:04 +03:00
2025-06-07 17:37:36 +09:00
2025-06-17 19:33:23 +02:00
2025-05-23 17:45:56 +08:00
2025-06-17 19:33:23 +02:00

Limbo Testing