Page 1 of 1

"Invalid class typecast" with MySQL 5.0.37

Posted: Thu 05 Apr 2007 22:20
by patyi
Hi !

I'm write abaut "Invalid class typecast" on MySQL 5.0.37-community-nt
on 22 Mar 2007. Unfortunately I hawe no time to invastigat it.
I'm take time now and faund that the problem occures only if the Query's
Options DefaultValues is set to True and execute Open method.
I try to found wat type of field causes this problem, bat the same error
upper on int, varchar, decimal, text ... Next I'm try with default NULL, NOT NULL, blank, 0 ... but nothing, same error !
"Invalid class typecast" is message both in design and runtime. Meanwhile I'm upgrade from MyDAC 4.40.0.24 to MyDAC 5.00.0.4 pro, and the same problem occures allso. Before I'm use MySQL 5.0.27 and this problem is not present.

D7 Enterprise, MyDAC 4.40.0.24 and (or) MyDAC 5.00.0.4 pro
Acess mod is Direct (not libmysql.dll)
WinXP pro, MySQL 5.0.37-community-nt.

(sory for My English !)

Posted: Fri 06 Apr 2007 08:50
by swierzbicki
Can you provide a small sample ?
A simple Delphi project + the SQL Statements to create your tables.

Without such infos, it will be very hard to track this bug down !

Posted: Fri 06 Apr 2007 09:27
by Antaeus
Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next MyDAC build (MyDAC 5.00.0.5).

I have the same problem with 4.40.0.22

Posted: Thu 19 Apr 2007 16:07
by Zsolt Csillag
Hello,

I have the same problem using Delphi 2006 and MyDac 4.40.0.22.

Will you fix this problem in verison 4 as well. ( I wouldn't like to buy the version 5 only because of this)

Thank you

Posted: Fri 20 Apr 2007 15:12
by Antaeus
Yes, we will inslude this fix in the next build of MyDAC 4 (4.40.0.25).