in

System.Data.SQLite

An open-source, enhanced version of the SQLite database engine for Windows

Odd behaviour on UPDATE statement

Last post 11-13-2007 1:14 PM by Robert Simpson. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-11-2007 4:36 PM

    Odd behaviour on UPDATE statement

    Hello everybody, I'm quite new to sqlite and I have a question about an odd behaviour. I'm using MSVC2003 and latest sqlite version.
    I update a record with the following code:

    rc = sqlite3_exec(waypoint_db, sqlstring, callback, 0, &zErrMsg);

    function returns SQLITE_OK. I use a SELECT to see the records and yes, the above record seems to be updated, it shows the new value.
    I quit the application (correctly closing the db), open it again and ... the record is showing the value prior to the update call.

    So it seems that even if a SELECT statement show that the value has been changed, these updates are not committed to disk ? I'm quite lost, any suggestion is really welcome.

  • 11-13-2007 1:14 PM In reply to

    Re: Odd behaviour on UPDATE statement

    There's not enough information here to assist you.  Are you using any transactions?  What do your statement(s) look like?  Can we see a more complete code snippet?

    Robert

     

Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems