Delphi - mySQL

------=_NextPart_000_0003_01C73124.A5938280
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Dear Friends

I have a irritating problem with mySQL installation.
I use
Delphi 6
odcb 3.51
and
mySQL 5.1.12
When I try to store floatingpoint variable from Delphi they are =
truncated.
I don't know what is the cause to the problem.
I have tried nearly every solution. Nothing help. Can you help me?

Best regards
S=F8ren Andersen
------=_NextPart_000_0003_01C73124.A5938280--
s.a [ Fr, 05 Januar 2007 23:53 ] [ ID #1586788 ]

RE: Delphi - mySQL

S=F8ren Andersen writes:
> When I try to store floating point variable
> from Delphi they are truncated.

What field type are you storing into?
What is the exact problem you're seeing?

FLOAT and DOUBLE fields are rounded on SELECT but stored
with higher precision by the server. In other words,
these field types are broken by design in MySQL Server.

If this is what you're experiencing, you might be able to
get the server to do something sensible by specifying an
exact precision for your fields by defining them as eg.
DOUBLE(x,y).


--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=3Dgcdmo-myodbc [at] m.gmane.o rg
David Dindorp [ Mo, 08 Januar 2007 09:55 ] [ ID #1588453 ]

RE: Delphi - mySQL

S=F8ren Andersen writes:
> When I try to store floating point variable
> from Delphi they are truncated.

You may also find one of these pages helpful:
http://dev.mysql.com/doc/refman/5.1/en/precision-math.html
http://dev.mysql.com/doc/refman/5.1/en/numeric-types.html
http://dev.mysql.com/doc/refman/5.1/en/problems-with-float.h tml


--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=3Dgcdmo-myodbc [at] m.gmane.o rg
David Dindorp [ Mo, 08 Januar 2007 10:19 ] [ ID #1588454 ]
Datenbanken » gmane.comp.db.mysql.odbc » Delphi - mySQL

Vorheriges Thema: Cannot connect with MyODBC Version 5.0.10
Nächstes Thema: ODBC failure