Problem with TMyTable and boolean field
Posted: Mon 03 Feb 2014 10:02
Hi,
I have a boolean field declared like this :
active_client tinyint(1) UNSIGNED DEFAULT '255'
When trying to fill a TMyTable I do
DestTable.FieldByName(FieldName).value := FieldValue;
here FieldValue is 0 or 255, but I get 0 or 1 when looking at the table.
Any idea ?
Regards
I have a boolean field declared like this :
active_client tinyint(1) UNSIGNED DEFAULT '255'
When trying to fill a TMyTable I do
DestTable.FieldByName(FieldName).value := FieldValue;
here FieldValue is 0 or 255, but I get 0 or 1 when looking at the table.
Any idea ?
Regards