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