In src/dbc/ZDbcSqLiteStatement.pas various calls to CheckSQLiteError are made using the statement handle (FStmtHandle), however sqlite3_errmsg (that CheckSQLiteError uses to get the error message) needs the database handle, otherwise the error message returned is always "library routine called out of sequence".
The attached patch is against 7.1.4, but I see in svn that trunk has the same problem.
Thanks for constribution!
done: R3649 /testing-7.2 (SVN) including fix same issue for unit ZDbcSqliteResultset.pas)
Please close the ticket..
Cheers, Michael
Thank you. Don't forget to merge it to trunk.