"Invalid class typecast" with MySQL 5.0.37

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
patyi
Posts: 14
Joined: Wed 01 Feb 2006 20:55

"Invalid class typecast" with MySQL 5.0.37

Post by patyi » Thu 05 Apr 2007 22:20

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 !)

swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Post by swierzbicki » Fri 06 Apr 2007 08:50

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 !

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

Post by Antaeus » Fri 06 Apr 2007 09:27

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).

Zsolt Csillag
Posts: 30
Joined: Sun 28 May 2006 16:09

I have the same problem with 4.40.0.22

Post by Zsolt Csillag » Thu 19 Apr 2007 16:07

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

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

Post by Antaeus » Fri 20 Apr 2007 15:12

Yes, we will inslude this fix in the next build of MyDAC 4 (4.40.0.25).

Post Reply