List:MySQL++« Previous MessageNext Message »
From:Ken Smith Date:March 24 2009 4:59pm
Subject:RE: Insertion of Infinity and Not-a-Number values using MySQL++
View as plain text  
Thanks Warren
I'll take a look at the patch, but I've just discovered a more pressing issue with the way
MySQL++ treats floats.  See next posting...
Ken
----------------------------------------
> Date: Tue, 24 Mar 2009 10:20:36 -0600
> From: mysqlpp@stripped
> To: plusplus@stripped
> Subject: Re: Insertion of Infinity and Not-a-Number values using MySQL++
>
> Ken Smith wrote:
>>
>> Sorry if this is in an FAQ somewhere, but I can't find anything...
>
> It seems there isn't much to find. The MySQL reference manual doesn't
> have much to say on this topic, either.
>
> Apparently one is meant to decide on a local standard. Since MySQL++
> doesn't yet have one, and your proposal looks reasonable, I'm happy to
> go with it.
>
> I'm a little unsure how to handle types not declared as nullable. (For
> instance, sql_double instead of Null.) If the type is
> nullable, mapping infinity and NaN to SQL null is fine. I don't think
> we should do the same for a type not declared as nullable, however. The
> attached patch uses 0 in this case. Otherwise, I get "inf" on my
> system, as that's how my C++ standard library converts infinity to a
> string. I believe this was left unspecified in the Standard, so it can
> do whatever it likes.
>
> Please try the attached patch, or the current svn version, to see if it
> does what you want. (The svn version also includes changes to the
> examples to demonstrate the new feature, but has unrelated features in
> development, too.)
>
> --
> MySQL++ Mailing List
> For list archives: http://lists.mysql.com/plusplus
> To unsubscribe: http://lists.mysql.com/plusplus?unsub=1
>

_________________________________________________________________
Free photo editing software from Windows Live . Try it now! 
http://clk.atdmt.com/UKM/go/134665240/direct/01/
Thread
Insertion of Infinity and Not-a-Number values using MySQL++Ken Smith23 Mar
  • Re: Insertion of Infinity and Not-a-Number values using MySQL++Warren Young24 Mar
    • RE: Insertion of Infinity and Not-a-Number values using MySQL++Ken Smith24 Mar
    • Re: Insertion of Infinity and Not-a-Number values using MySQL++Warren Young24 Mar