QOF 2-part commit

Phil Longstaff plongstaff at rogers.com
Mon Jun 22 19:45:48 EDT 2009

With the SQL backend, the date-entered for transactions is being save as jan 1 
1970.  The problem is with the 2-part commit.

xaccTransCommitEdit() calls qof_commit_edit() (1st part), then sets date-
entered to the current time, then calls qof_commit_edit_part2() (2nd part).  
However, since the transaction is marked clean during the 1st part, and not 
marked dirty again, the 2nd part does nothing, so the date-entered is not set 
in the db.

Is the 2-part commit meant to implement the standard 2-phase commit for a db?  
If not, what is the purpose?


More information about the gnucash-devel mailing list