DELETE FROM verification_token where token = ?1 RETURNING *result.results.length <= 0 is TRUE on productionrun() does not return resultsall() or first().run() should throw an error if it returns results.run()? It currently does exactly the same as all().run()'s behaviour tbhrun() returns results.

unhex()?hex() works just fineBLOB (initially generated with (randomblob(16))), this works:DELETE FROM verification_token where token = ?1 RETURNING *result.results.length <= 0run()run()run()run()run()resultsresultsall()all()first()unhex()hex()BLOB(randomblob(16))const result = await this.db
.prepare('DELETE FROM verification_token WHERE token = ?1 RETURNING *')
.bind(token)
.run();
if (result.error) {
return { data: null, error: Error(`failed to delete from db: ${result.error}`) };
}
if (result.results.length <= 0) {
return { data: null, error: null };
}
const vToken = result.results[0];(lower(format('%s-%s-%s-%s-%s', substr(hex(t_id),1,8), substr(hex(t_id),9,4), substr(hex(t_id),13,4), substr(hex(t_id),17,4), substr(hex(t_id),21))))