Commit Graph

11 Commits

Author SHA1 Message Date
Phil Longstaff
45203aec4b More conversion to read/write objects from sql backend using gobject parameters
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18766 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-28 23:19:34 +00:00
Phil Longstaff
dc65c95b77 Take advantage of the initial property definition for Transaction, Split, GNCPrice and SchedXaction by replacing custom access routines with gobject properties.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18763 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-28 17:36:49 +00:00
Phil Longstaff
cd0b4fe145 When creating lists of database objects, use g_list_prepend() rather than g_list_append(). There may be cases where the list order is significant and thus needs to be reversed, but that is not true in these cases. This provides a large improvement in database loading performance.
Analysis and basis patch supplied by Donald Allen.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18724 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-24 20:11:22 +00:00
Phil Longstaff
1dbcb0dada Fix bug 593865 - Unable to save to database error when scheduling transactions
Allow scheduled transaction to have NULL start date.  Will require db to be deleted
and recreated.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18300 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-07 16:25:11 +00:00
Phil Longstaff
b83d32f83f Fix bug 591614: Saving to postgresql causes zombie scheduled transactions.
SX end date was not being stored.  It is now stored.

NOTE: This is a change in the db table schema.  You need to save your data to XML, then resave
to the database.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18252 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-15 21:09:47 +00:00
Phil Longstaff
bde496195d 1) When deleting a sched transaction, delete the recurrence properly (SQL backend)
2) Fix bug 586558 – When a scheduled transaction is deleted, the objects aren't cleaned up properly
The problem is that the xaccSchedXactionFree() function didn't properly call qof to commit the
delete operation.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18180 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-07-06 23:11:56 +00:00
Phil Longstaff
945e700a37 Fix lots of splint issues (including memory leaks). This includes some changes
in qof and gnc files adding annotation comments to help splint analyze ownership
of memory and objects.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17983 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-09 17:17:57 +00:00
Phil Longstaff
e9929bd401 Fix some splint issues
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17928 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-16 21:30:21 +00:00
Phil Longstaff
aa73788d85 When loading a scheduled transaction, load the transactions associated with it.
Otherwise, the scheduled transaction won't be created.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17916 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-14 23:22:18 +00:00
Phil Longstaff
d1198d026f Improve error handling. If an SQL command fails, set the qof backend error
code.  Unfortunately, at this time, the front end seems to ignore the error
(other than logging it).



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17606 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-27 17:31:23 +00:00
Phil Longstaff
9173035d57 Merge gda-dev2 branch into trunk.
This introduces the dbi backend and the --enable-dbi configure option.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17444 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-08-01 16:02:07 +00:00