[odb-users] Assertion fails in mysql/statement.cxx
Boris Kolpackov
boris at codesynthesis.com
Wed Dec 11 10:43:11 EST 2013
Hi Scott,
Scott Deerwester <scott.deerwester at gmail.com> writes:
> I'm receiving the following in a unit test:
>
> tst_MyTest: statement.cxx:377: odb::mysql::select_statement::result
> odb::mysql::select_statement::fetch(bool): Assertion
> `mysql_stmt_field_count (stmt_) == count' failed.
The comment just before the assert() explains what it tries to catch:
// Make sure that the number of columns in the result returned by
// the database matches the number that we expect. A common cause
// of this assertion is a native view with a number of data members
// not matching the number of columns in the SELECT-list.
Though it seems like you are loading an object so this can't be that.
> If you need me to, I'll try to write a minimal set of code that
> demonstrates the problem.
Yes, that would be very helpful.
Boris
More information about the odb-users
mailing list