SQLite Forum

Error with upsert and trigger WHEN clause?
Login
The error was produced when parsing/preparing the statement, not at execution time (the statement never got that far) because the WHEN clause referred to an unknown/ambiguous column name.