Add some debug enter/exit tracing. Add some more argument checking.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18014 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff 2009-04-04 23:44:16 +00:00
parent c02bba9102
commit f8cf69ef2d
2 changed files with 10 additions and 0 deletions

View File

@ -449,6 +449,9 @@ gnc_sql_begin_edit( GncSqlBackend *be, QofInstance *inst )
{
g_return_if_fail( be != NULL );
g_return_if_fail( inst != NULL );
ENTER( " " );
LEAVE( "" );
}
void
@ -456,6 +459,9 @@ gnc_sql_rollback_edit( GncSqlBackend *be, QofInstance *inst )
{
g_return_if_fail( be != NULL );
g_return_if_fail( inst != NULL );
ENTER( " " );
LEAVE( "" );
}
static void

View File

@ -735,6 +735,9 @@ compile_split_query( GncSqlBackend* be, QofQuery* pQuery )
g_free( query_sql );
query_info->has_been_run = FALSE;
query_info->acct = xaccAccountLookup( acct_guid, be->primary_book );
if( query_info->acct == NULL ) {
PWARN( "Unable to find account with guid='%s'\n", guid_buf );
}
g_free( subquery_sql );
}
@ -749,6 +752,7 @@ run_split_query( GncSqlBackend* be, gpointer pQuery )
g_return_if_fail( be != NULL );
g_return_if_fail( pQuery != NULL );
g_return_if_fail( query_info->acct != NULL );
// When the query to load all splits for the account has been run, set the
// mark so that this account's query is not reexecuted.