mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-28 13:34:24 +01:00
Previously we were not escaping the quotes properly in stirng literals as shown below. The PR fixes that limbo output without this PR ``` limbo> select '''a'; ''a limbo> explain select '''a'; addr opcode p1 p2 p3 p4 p5 comment ---- ----------------- ---- ---- ---- ------------- -- ------- 0 Init 0 4 0 0 Start at 4 1 String8 0 1 0 ''a 0 r[1]='''a' 2 ResultRow 1 1 0 0 output=r[1] 3 Halt 0 0 0 0 4 Transaction 0 0 0 0 5 Goto 0 1 0 0 ``` sqlite3 output ``` sqlite> select '''a'; 'a sqlite> explain select '''a'; addr opcode p1 p2 p3 p4 p5 comment ---- ------------- ---- ---- ---- ------------- -- ------------- 0 Init 0 4 0 0 1 String8 0 1 0 'a 0 2 ResultRow 1 1 0 0 3 Halt 0 0 0 0 4 Goto 0 1 0 0 ``` limbo output with this PR ``` limbo> select '''a'; 'a limbo> explain select '''a'; addr opcode p1 p2 p3 p4 p5 comment ---- ----------------- ---- ---- ---- ------------- -- ------- 0 Init 0 4 0 0 Start at 4 1 String8 0 1 0 'a 0 r[1]=''a' 2 ResultRow 1 1 0 0 output=r[1] 3 Halt 0 0 0 0 4 Transaction 0 0 0 0 5 Goto 0 1 0 0 ``` Closes #616