r15335 - gnucash/branches/gda-dev/src/backend/gda - 1) Ensure book table is created
Phil Longstaff
plongstaff at cvs.gnucash.org
Wed Jan 10 11:53:20 EST 2007
Author: plongstaff
Date: 2007-01-10 11:53:18 -0500 (Wed, 10 Jan 2007)
New Revision: 15335
Trac: http://svn.gnucash.org/trac/changeset/15335
Modified:
gnucash/branches/gda-dev/src/backend/gda/gnc-backend-gda.c
Log:
1) Ensure book table is created
2) Fix name of function call - problem reported by Mark Johnson
Modified: gnucash/branches/gda-dev/src/backend/gda/gnc-backend-gda.c
===================================================================
--- gnucash/branches/gda-dev/src/backend/gda/gnc-backend-gda.c 2007-01-09 20:59:02 UTC (rev 15334)
+++ gnucash/branches/gda-dev/src/backend/gda/gnc-backend-gda.c 2007-01-10 16:53:18 UTC (rev 15335)
@@ -42,6 +42,7 @@
#include "gnc-gconf-utils.h"
#include "gnc-account-gda.h"
+#include "gnc-book-gda.h"
#include "gnc-budget-gda.h"
#include "gnc-commodity-gda.h"
#include "gnc-lots-gda.h"
@@ -252,7 +253,7 @@
if( error != NULL ) {
printf( "SQL error: %s\n", error->message );
}
- numTables = gda_data_model_get_num_rows( tables );
+ numTables = gda_data_model_get_n_rows( tables );
for( row = 0; row < numTables; row++ ) {
const GValue* row_value;
const gchar* table_name;
@@ -626,6 +627,7 @@
static void
gnc_gda_init_object_handlers( void )
{
+ gnc_gda_init_book_handler();
gnc_gda_init_commodity_handler();
gnc_gda_init_account_handler();
gnc_gda_init_budget_handler();
More information about the gnucash-changes
mailing list