mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 12:04:21 +01:00
data does not match predicate when using index, e.g: `select id, age from users where age > 90 limit 1;` will return data with age 90 the reason is that the current index seek directly uses record for comparison, but the record of the index itself is longer than the record of the key (because it contains the primary key), so Gt is invalid. since only single-column indexes are currently supported: https://github.com/tursodatabase/limbo/pull/350, only the first value of the record is currently used for comparison. Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com> Closes #593