Wrong Result in MySQL 5

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
hs
Posts: 1
Joined: Wed 26 Apr 2006 03:50

Wrong Result in MySQL 5

Post by hs » Wed 26 Apr 2006 04:32

Hi,

I upgraded to MySQL 5 and have wrong result in my query. Details bellow :

Delphi 5 OR Delphi 6, MyDAC 5.55.0.26, MySQL 5.0.18

Table test
Kode varchar(11)
Qty decimal(9,2)
Price decimal(15,4)
Disc decimal(6,4)
Tax decimal(6,4)
Kurs decimal(10,4)

My Query like this :
Select Kode,Qty,Price,Disc,Tax,Kurs,Qty*Price*Kurs*(1-(Disc/100))*(1+(Tax/100)) Total from test

IF I direct run this query with SQLYog, i have the correct result. But if i use mydac in my apps the result is wrong. Any idea?

Thanks.
hs

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 27 Apr 2006 07:39

Thank you for information. We have reproduced this problem. The investigation of the problem is in progress. Unfortunately now we cannot give you any information. As soon as we solve the problem we'll let you know.
As temporary solution you can set MyQuery.Options.FieldsAsString to True.

ben
Posts: 119
Joined: Wed 17 Nov 2004 19:48

Post by ben » Thu 27 Apr 2006 20:17

this bug also applies to the 4.x version of MyDAC?

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Fri 28 Apr 2006 08:01

Yes. We have reproduced this bug using the latest build of MyDAC.

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Sat 06 May 2006 15:14

We have fixed this problem. This fix will be included in the next MyDAC build.

Post Reply