mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-28 05:24:22 +01:00
Fixing stuff that appears in Fuzz testing. # Before <img width="668" alt="image" src="https://github.com/user- attachments/assets/f1f59b63-5173-4932-98b2-774803cb8a8e" /> ``` limbo> EXPLAIN SELECT -x''; addr opcode p1 p2 p3 p4 p5 comment ---- ----------------- ---- ---- ---- ------------- -- ------- 0 Init 0 5 0 0 Start at 5 1 Blob 0 2 0 0 r[2]= (len=0) 2 Multiply 3 2 1 0 r[1]=r[3]*r[2] 3 ResultRow 1 1 0 0 output=r[1] 4 Halt 0 0 0 0 5 Integer -1 3 0 0 r[3]=-1 6 Goto 0 1 0 0 ``` # After <img width="175" alt="image" src="https://github.com/user- attachments/assets/9f361dc3-b243-4d69-bdd2-d6a2bbc0bf20" /> ``` limbo> EXPLAIN SELECT -x''; addr opcode p1 p2 p3 p4 p5 comment ---- ----------------- ---- ---- ---- ------------- -- ------- 0 Init 0 5 0 0 Start at 5 1 Blob 0 2 0 0 r[2]= (len=0) 2 Subtract 3 2 1 0 r[1]=r[3]-r[2] 3 ResultRow 1 1 0 0 output=r[1] 4 Halt 0 0 0 0 5 Integer 0 3 0 0 r[3]=0 6 Goto 0 1 0 0 ``` # Sqlite ``` sqlite> SELECT -x''; 0 sqlite> EXPLAIN SELECT -x''; addr opcode p1 p2 p3 p4 p5 comment ---- ------------- ---- ---- ---- ------------- -- ------------- 0 Init 0 4 0 0 Start at 4 1 Subtract 3 2 1 0 r[1]=r[2]-r[3] 2 ResultRow 1 1 0 0 output=r[1] 3 Halt 0 0 0 0 4 Integer 0 2 0 0 r[2]=0 5 Blob 0 3 0 0 r[3]= (len=0) 6 Goto 0 1 0 0 ``` Closes #1333