Files
turso/core
Jussi Saurio e4541edb48 Fix IdxGt,IdxGe,IdxLt,IdxLe instructions
According to SQLite documentation, the way to use these instructions
is to compare the seek key to the index key as you would with the
Compare opcode. The compare opcode states:

"Compare two vectors of registers in reg(P1)..reg(P1+P3-1)
(call this vector "A") and in reg(P2)..reg(P2+P3-1) ("B")."

In other words, we should compare the same number of columns from each,
not compare the entire keys.

This fixes a few Clickbench queries returning incorrect results, and
so closes #1009

---

Future work: support index seek keys that use multiple columns. Our
index seek is many times slower than SQLite because we're not utilizing
all the possible columns -- instead we just use the first index column
to seek.
2025-02-15 12:44:56 +02:00
..
2025-02-12 17:28:04 +02:00
2025-02-11 09:05:34 -04:00
2025-02-11 09:03:36 -04:00
2025-01-28 14:55:38 -05:00
2025-02-12 17:28:04 +02:00
2025-02-06 23:46:00 -03:00
2025-01-28 14:55:38 -05:00
2025-02-11 09:03:36 -04:00
2025-02-06 13:40:34 +02:00
2024-12-24 18:04:30 +01:00
2025-02-12 17:28:04 +02:00
2025-02-12 17:28:04 +02:00