From 3c716e5c1836f678e486215f62fb241ea244b493 Mon Sep 17 00:00:00 2001 From: Phil Longstaff Date: Sun, 16 Aug 2009 17:09:28 +0000 Subject: [PATCH] Fix CRIT messages when loading budgets git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18254 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/backend/sql/gnc-budget-sql.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/backend/sql/gnc-budget-sql.c b/src/backend/sql/gnc-budget-sql.c index 8f72672f67..3918f3dc5d 100644 --- a/src/backend/sql/gnc-budget-sql.c +++ b/src/backend/sql/gnc-budget-sql.c @@ -68,6 +68,7 @@ static const GncSqlColumnTableEntry col_table[] = }; 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 @@ static const GncSqlColumnTableEntry budget_amounts_col_table[] = /*@ -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 @@ get_budget( gpointer pObj ) return QOF_INSTANCE(info->budget); } +static void +set_budget( gpointer pObj, gpointer val ) +{ +} + static /*@ dependent @*//*@ null @*/ QofInstance* get_account( gpointer pObj ) {