Hi again,
On Tue, 28 Oct 2008 11:26:48 am Russell Robinson wrote:
> The doco says this:
>
> ****
> // Types with tf_default set are added to a lookup map in the
> // mysql_type_info_lookup class in order to provide reverse lookup
> // of C++ types to SQL types. If you take the subset of all items
> // marked as default, the typeid() of each item must be unique.
> ****
>
> If I understand this right, then all the Null<sql_*blob> entries in
> type_info.cpp should have the tf_default flag.
>
So, re-reading it and thinking (always helps), I'm wrong.
typeid(sql_*blob) all reduce to typeid(mysqlpp::String).
Therefore, only one of these can be the default.
Comparing this logic to sql_varchar and sql_char, it seems one picks the type
that has the fewest restrictions.
So, I'll try making sql_blob the default, and see what happens.
--
Russell Robinson (russellr@stripped)