Closed Aflynn50 closed 1 year ago
Yes, this happens because of the way we handle EXEC_SQL requests, we call sqlite3_step once and return an error if it returns something other than SQLITE_DONE. That happens in particular if the executed SQL yields rows, so the first return value of sqlite3_step is SQLITE_ROW (= 100). It should be easy to add a path to check this and insert a more helpful error message.
When executing a
SELECT
statement withdb.Exec
the error returned the error returned is a bit confusing, it claims that it is not an error.Gives
The full error object appears to be: