mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
c02bba9102
commit
f8cf69ef2d
@ -449,6 +449,9 @@ gnc_sql_begin_edit( GncSqlBackend *be, QofInstance *inst )
|
|||||||
{
|
{
|
||||||
g_return_if_fail( be != NULL );
|
g_return_if_fail( be != NULL );
|
||||||
g_return_if_fail( inst != NULL );
|
g_return_if_fail( inst != NULL );
|
||||||
|
|
||||||
|
ENTER( " " );
|
||||||
|
LEAVE( "" );
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -456,6 +459,9 @@ gnc_sql_rollback_edit( GncSqlBackend *be, QofInstance *inst )
|
|||||||
{
|
{
|
||||||
g_return_if_fail( be != NULL );
|
g_return_if_fail( be != NULL );
|
||||||
g_return_if_fail( inst != NULL );
|
g_return_if_fail( inst != NULL );
|
||||||
|
|
||||||
|
ENTER( " " );
|
||||||
|
LEAVE( "" );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -735,6 +735,9 @@ compile_split_query( GncSqlBackend* be, QofQuery* pQuery )
|
|||||||
g_free( query_sql );
|
g_free( query_sql );
|
||||||
query_info->has_been_run = FALSE;
|
query_info->has_been_run = FALSE;
|
||||||
query_info->acct = xaccAccountLookup( acct_guid, be->primary_book );
|
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 );
|
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( be != NULL );
|
||||||
g_return_if_fail( pQuery != 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
|
// 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.
|
// mark so that this account's query is not reexecuted.
|
||||||
|
Loading…
Reference in New Issue
Block a user