Re: [sqlite] sqlite3session_changeset API oddity

2014-01-06 Thread Dan Kennedy
On 01/06/2014 03:40 PM, Simon Slavin wrote: On 6 Jan 2014, at 5:18am, Dan Kennedy wrote: sqlite3session_changeset() returns a blob containing the differences between the current database and the database as it was when the session object was first attached. After

Re: [sqlite] sqlite3session_changeset API oddity

2014-01-06 Thread Simon Slavin
On 6 Jan 2014, at 5:18am, Dan Kennedy wrote: > sqlite3session_changeset() returns a blob containing the differences > between the current database and the database as it was when the > session object was first attached. After running "UNDO", there are > no differences.

Re: [sqlite] sqlite3session_changeset API oddity

2014-01-05 Thread Dan Kennedy
On 01/05/2014 11:23 PM, Marco Bambini wrote: I am using sqlite3_changeset API to add undo/redo capabilities to an app. I record sqlite operations and I store all of them in a sqlite3_session object. When I need to UNDO an operation I simply do something like: rc =

[sqlite] sqlite3session_changeset API oddity

2014-01-05 Thread Marco Bambini
I am using sqlite3_changeset API to add undo/redo capabilities to an app. I record sqlite operations and I store all of them in a sqlite3_session object. When I need to UNDO an operation I simply do something like: rc = sqlite3session_changeset(session, , ); rc =