Skip to content

Commit 1c2653f

Browse files
committed
fix: quote memory delete hash in e2e
Pass the dbmem content hash to memory_delete as a SQL string literal so SQLite does not interpret the hash as a column name.
1 parent 4fb1df3 commit 1c2653f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqlite-wasm/test/e2e.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
'SELECT hash FROM dbmem_content WHERE context IS NULL LIMIT 1;',
183183
);
184184
const before = execScalar('SELECT COUNT(*) FROM dbmem_content;');
185-
execScalar(`SELECT memory_delete(${hash});`);
185+
execScalar(`SELECT memory_delete('${hash}');`);
186186
const after = execScalar('SELECT COUNT(*) FROM dbmem_content;');
187187
if (after !== before - 1)
188188
throw new Error(`expected ${before - 1}, got ${after}`);

0 commit comments

Comments
 (0)