List:MySQL++« Previous MessageNext Message »
From:Russell Robinson Date:October 28 2008 12:35am
Subject:Re: Patch for ssqls null blob deficiency
View as plain text  
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)
Thread
Patch for ssqls null blob deficiencyRussell Robinson27 Oct
  • Re: Patch for ssqls null blob deficiencyRussell Robinson27 Oct
  • Re: Patch for ssqls null blob deficiencyWarren Young27 Oct
    • Re: Patch for ssqls null blob deficiencyRussell Robinson27 Oct
      • Re: Patch for ssqls null blob deficiencyWarren Young28 Oct
        • Re: Patch for ssqls null blob deficiencyRussell Robinson28 Oct
        • Re: Patch for ssqls null blob deficiencyRussell Robinson28 Oct
          • Re: Patch for ssqls null blob deficiencyRussell Robinson28 Oct
            • Re: Patch for ssqls null blob deficiencyRussell Robinson28 Oct
              • Re: Patch for ssqls null blob deficiencyWarren Young28 Oct
                • Re: Patch for ssqls null blob deficiencyRussell Robinson28 Oct
                  • Re: Patch for ssqls null blob deficiencyRussell Robinson28 Oct
                    • Re: Patch for ssqls null blob deficiencyWarren Young29 Oct
                      • Re: Patch for ssqls null blob deficiencyRussell Robinson29 Oct
                        • Re: Patch for ssqls null blob deficiencyWarren Young29 Oct
                          • Re: Patch for ssqls null blob deficiencyRussell Robinson29 Oct