Error in version 5.20

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
cybsistemas
Posts: 118
Joined: Mon 12 Sep 2005 17:31
Location: Argentina

Error in version 5.20

Post by cybsistemas » Fri 01 Feb 2008 20:36

Myquery1.SQL.Text := 'select *,false as pago from gastos'.

In that example the fiel pago is LargeInt (error) When in reality is Boolean

In version 5.10 working correctly in 5.20 no.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 04 Feb 2008 14:03

Yes, you are right. We added mapping of boolean constants to TBooleanField in MyDAC 5.10.
But it also caused mapping of such integer constants as 1 and 0 to TBooleanField. After some deeper investigation we found out that MySQL server returns the same result for both queries 'SELECT FALSE' and 'SELECT 0', and there is no way to ascertain which of queries was executed. Therefore we had to rollback this fix in one of the subsequent builds.

cybsistemas
Posts: 118
Joined: Mon 12 Sep 2005 17:31
Location: Argentina

Post by cybsistemas » Mon 04 Feb 2008 14:56

Thank you

Post Reply