TField.Clear method not working as expected

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
kiwisigi
Posts: 6
Joined: Mon 19 Oct 2009 20:01

TField.Clear method not working as expected

Post by kiwisigi » Mon 19 Oct 2009 23:07

Hi,

Using a tmytable component I was expecting to set a smallint field (unsigned) to NUL when using the field.clear method.

Instead it makes the field 0.

Any suggestion how I can set it to NULL ?

Is this a bug or meant to be like this?

thanks
sigi

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

Post by Dimon » Mon 26 Oct 2009 10:21

I could not reproduce the problem.
Please send me a complete small sample to dmitryg*devart*com to demonstrate it, including a script to create and fill table.

Also supply me the following information:
- the exact version of MyDAC. You can see it in the About sheet of TMyConnection Editor;
- the exact version of your IDE;
- the exact version of MySQL server. You can see it in the Info sheet of TMyConnection Editor.

Post Reply