From: Reggie Burnett Date: February 21 2007 4:24pm Subject: RE: MySQL not taking a Double.MaxValue List-Archive: http://lists.mysql.com/dotnet/1174 Message-Id: <01d601c755d4$cbec57c0$63c50740$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit > > Hi guys; > > Just a quick question (I am busy writing unit tests for my Business > Objects > system) > I've got a simple object that stores every CLR type and I'm going thru > testing it's min/max values; > > so for example; (pseudo code) > > INSERT INTO `TESTA` > (`boolean`,`byte`,`sbyte`,`char`,`decimal`,`double`,`enumdayofweek`,`fl > oat`, > `int16`,`int32`,`int64`,`uint16`,`uint32`,`uint64`,`texta`,`textb`,`tex > tc`,` > textd`,`texte`) > VALUES > (?boolean,?byte,?sbyte,?char,?decimal,?double,?enumdayofweek,?float,?in > t16,? > int32,?int64,?uint16,?uint32,?uint64,?texta,?textb,?textc,?textd,?texte > ) > > It appears that there are slight differences between the max value supported by MySQL and Double.MaxValue. MySQL: 1.7976931348623157E+308 .NET : 1.79769313486232 E+308