DashboardcliWASM SQLite bind spread

WASM SQLite bind spread

Category: gotcha
Confidence: 1.00
ID: 01a08352-dbfa-70b2-a2bc-8d280e3b7267
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 1
Source session: 0wqisj4WhG2TyaOtb
Created: 2026-08-21 13:26:37
Updated: 2026-09-08 23:20:40

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 1 11h ago

Content

Trap: passing a bind-parameter array directly to WASM SQLite looks equivalent to spreading it because native drivers often accept arrays. Fix: always call WASM bind/execute methods with spread parameters and map undefined defensively to null, because node-sqlite3-wasm otherwise treats the array as one value or binds incorrectly.

Move to: