Hi,
On Tue, 28 Oct 2008 10:13:48 am Warren Young wrote:
> Russell Robinson wrote:
> > Failed to find MySQL C API type ID for N7mysqlpp6StringE
>
> This should be taken care of by line 192 in lib/type_info.cpp.
Yes, I know.
>
> (No, don't try to understand type_info.cpp. Only 5th level wizards and
> up are expected to be able to read this without psychic damage.)
I understand that well enough...what I'm trying to trace at the moment is how value_list
uses type_info.
>
> Can you modify an example to show the same error?
I don't think so. The actual project is quite complex and the unit test I did (and your
new version of load_jpeg.cpp) does exactly what my project does.
Why the difference in behaviour - I don't know.
The are only a few essential differences in the code:
My actual project record is 12 columns.
I derive from the sql_create_12 structure, and my derived class is what's used in the
insert.
I change the table name with the ::table("Blah") feature.
I've tracked down the problem to the value_list call, and it triggers the type_info
exception on the Null<sql_blob> column.
I'll write back when I find out why.
> > Your change doesn't do the critical part....which is to do:
> >
> > query.insert(images);
>
> Sure it does. Line 114 in examples/load_jpeg.cpp.
Sorry, I don't know how i missed that.
--
Russell Robinson (russellr@stripped)