Open alaviss opened 4 years ago
This is the code used for tryQuery:
tryQuery
if stepQuery(db, prepStmt, returnsData): action stopQuery(db, prepStmt)
Which appears to be designed to not throw any errors on failure, but:
template stopQuery*(db: DbConn; s: PStmt) = if sqlite3.reset(s) != SQLITE_OK: dbError(db)
Which will throw the last error occurred from executing the statement, see sqlite3_reset() documentation
sqlite3_reset()
This is the code used for
tryQuery
:Which appears to be designed to not throw any errors on failure, but:
Which will throw the last error occurred from executing the statement, see
sqlite3_reset()
documentation