there is a field that is ENUM('Y','N')
I call with my code
Query1.ParamByName('payed').AsBoolean := true;
it works, it sets 'Y'.
but if I say
Query1.ParamByName('payed').AsBoolean := false;
it doesnt add 'N', it leaves it empty ''
Then I added default value to the field 'N'. Nothing, still '' (empty).
Boolean bug
The right is to use ENUM('Y','N') while most of components outside support that way. Microolap's MySQL Components support the ENUM directly using AsBoolean. ZeosLib the same. At last, DevExpress QuantumGrid can read only ENUM(Y,N) to display checkboxes not Tinyint(1).
So, i believe you should support both of them.
So, i believe you should support both of them.
According to the current MySQL standards (http://dev.mysql.com/doc/mysql/en/boolean-values.html)boolean values must be written as '0' and '1'.
As to DevExpress QuantumGrid most likely on calling TBooleanField CheckBox will be displayed not depending on declaration of the field at the server.
As to DevExpress QuantumGrid most likely on calling TBooleanField CheckBox will be displayed not depending on declaration of the field at the server.