mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 12:04:21 +01:00
Modified `cast_text_to_number` to be more compatible with SQLite. When I was running some fuzz tests, I would eventually get errors due to incorrect casting of text to `INTEGER` or `REAL`. Previously in code there were 2 implementations of `cast_text_to_number`: one in `core/vdbe/insn.rs` and one in `core/vdbe/mod.rs`. I consolidated the casting to only one function. Previously, the `mod.rs` function was just calling `checked_cast_text_to_numeric`, which was used in `MustBeInt` opcode. Hopefully this fixes some of the CI testing issues we are having. This was the query that prompted me to do this: `SELECT ( ( ( 878352367 ) <> ( 29 ) ) ) = ( ( ( -4309097 ) / ( -37 || -149680985265412 ) ) - 755066415 );` Closes #1038