r18254 - gnucash/trunk/src/backend/sql - Fix CRIT messages when loading budgets
Phil Longstaff
plongstaff at code.gnucash.org
Sun Aug 16 13:09:28 EDT 2009
Author: plongstaff
Date: 2009-08-16 13:09:28 -0400 (Sun, 16 Aug 2009)
New Revision: 18254
Trac: http://svn.gnucash.org/trac/changeset/18254
Modified:
gnucash/trunk/src/backend/sql/gnc-budget-sql.c
Log:
Fix CRIT messages when loading budgets
Modified: gnucash/trunk/src/backend/sql/gnc-budget-sql.c
===================================================================
--- gnucash/trunk/src/backend/sql/gnc-budget-sql.c 2009-08-16 00:50:33 UTC (rev 18253)
+++ gnucash/trunk/src/backend/sql/gnc-budget-sql.c 2009-08-16 17:09:28 UTC (rev 18254)
@@ -68,6 +68,7 @@
};
static /*@ dependent @*//*@ null @*/ QofInstance* get_budget( gpointer pObj );
+static void set_budget( gpointer pObj, gpointer val );
static /*@ dependent @*//*@ null @*/ QofInstance* get_account( gpointer pObj );
static void set_account( gpointer pObj, gpointer val );
static gint get_period_num( gpointer pObj );
@@ -86,7 +87,7 @@
/*@ -full_init_block @*/
{ "id", CT_INT, 0, COL_NNUL|COL_PKEY|COL_AUTOINC },
{ "budget_guid", CT_BUDGETREF, 0, COL_NNUL, NULL, NULL,
- (QofAccessFunc)get_budget },
+ (QofAccessFunc)get_budget, (QofSetterFunc)set_budget },
{ "account_guid", CT_ACCOUNTREF, 0, COL_NNUL, NULL, NULL,
(QofAccessFunc)get_account, (QofSetterFunc)set_account },
{ "period_num", CT_INT, 0, COL_NNUL, NULL, NULL,
@@ -108,6 +109,11 @@
return QOF_INSTANCE(info->budget);
}
+static void
+set_budget( gpointer pObj, gpointer val )
+{
+}
+
static /*@ dependent @*//*@ null @*/ QofInstance*
get_account( gpointer pObj )
{
More information about the gnucash-changes
mailing list