field_date date not null default '0000-00-00'

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
chihebbs
Posts: 46
Joined: Tue 05 Jun 2007 20:06

field_date date not null default '0000-00-00'

Post by chihebbs » Wed 18 Jun 2008 18:33

Upgrading to version 5.50.0.34/35 when using TMyQuery with DefaultValues=true and a date field defined as field_date date NOT NULL default '0000-00-00' or Datetime not null default '0000-00-00 00:00:00'
MyQuery->Append() raises exception class EVariantTypeCastError with message 'Could not convert variant of type (String) into type (Date)'. and
next exception EDatabaseError with message 'Invalid value for field 'field_date''. whereas in versions till 5.20.0.15 the same situation was working without problems.
CodeGear Rad Studio 2007 C++
Windows XP Sp2
MyDac professional 5.50.0.35
Mysql 5.0.45
Please advice.

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

Post by Dimon » Thu 19 Jun 2008 09:28

Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next MyDAC build.

chihebbs
Posts: 46
Joined: Tue 05 Jun 2007 20:06

Post by chihebbs » Thu 19 Jun 2008 14:24

Thank's Dimon.

alf.krause
Posts: 7
Joined: Wed 20 Sep 2006 09:44

Post by alf.krause » Fri 27 Jun 2008 12:52

we have same problem - when is the next build ready for download?

The problem is on reading master detail with using the MyTable Component.

THX

Alf

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

Post by Dimon » Thu 03 Jul 2008 06:42

We plan to release the next MyDAC build next week.

Post Reply