-
Notifications
You must be signed in to change notification settings - Fork 69
Closed
Description
String parsing appears to be happening somewhere, breaking this longstanding cross-platform SQLite statement, below.
This statement escapes by presenting double-quotes twice.
const sqlite = new SqliteClient(FILENAME, WORKER_PATH);
await sqlite.init();
sqlite.executeSql(
'CREATE TABLE IF NOT EXISTS queue' +
'(' +
'id INTEGER PRIMARY KEY AUTOINCREMENT, ' +
'object VARCHAR(5000), ' +
')'
);
const sql = 'UPDATE queue SET object = REPLACE(REPLACE(object,"processing","queued"),"attempt"":5","attempt"":0")';
sqlite.executeSql(sql);
Metadata
Metadata
Assignees
Labels
No labels
