mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
Handle integer values returned as string GValues (mysql does this for bigint
values). git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17975 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -875,6 +875,8 @@ gnc_sql_get_integer_value( const GValue* value )
|
||||
return g_value_get_int64( value );
|
||||
} else if( G_VALUE_HOLDS_UINT64(value) ) {
|
||||
return (gint64)g_value_get_uint64( value );
|
||||
} else if( G_VALUE_HOLDS_STRING( value ) ) {
|
||||
return g_ascii_strtoll( g_value_get_string( value ), NULL, 10 );
|
||||
} else {
|
||||
PWARN( "Unknown type: %s", G_VALUE_TYPE_NAME( value ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user