Evolution: Set a default Date egal to -700000 instead 0

Freature requests from users for ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist, mdaems

Post Reply
ddantoni
Fresh Boarder
Fresh Boarder
Posts: 14
Joined: 17.10.2005, 15:15

Evolution: Set a default Date egal to -700000 instead 0

Post by ddantoni »

Hi,
is it possible to change the date default value or add possibility to change it inside zdbc config because lot of controls like DevExpress use -700000 value to specify NullDate.
Also DateToStr(-700000) return 00/00/0000.

Currently I modified MySQLResultSet.GetDate and changed Result := 0 to Result := -700000 if date was Null.

Thanks
David
ddantoni
Fresh Boarder
Fresh Boarder
Posts: 14
Joined: 17.10.2005, 15:15

Post by ddantoni »

Hello,
in the latest release, the default date value is always 0.
Is there anybody that had the same problem that me:
(MySQL date value for "0000-00-00" is defined to 0 and should be -700000)

Thanks
David
Post Reply