Menu

#136 CheckSQLiteError needs the database handle, not the statement handle.

Unknown
closed
nobody
None
2015-11-09
2015-11-05
No

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.

1 Attachments

Discussion

  • EgonHugeist

    EgonHugeist - 2015-11-09

    Thanks for constribution!
    done: R3649 /testing-7.2 (SVN) including fix same issue for unit ZDbcSqliteResultset.pas)

    Please close the ticket..

    Cheers, Michael

     
  • Luca Olivetti

    Luca Olivetti - 2015-11-09
    • status: open --> closed
     
  • Luca Olivetti

    Luca Olivetti - 2015-11-09

    Thank you. Don't forget to merge it to trunk.

     

Log in to post a comment.