knulo
User
 Senior Boarder
| Posts: 38 |   | Karma: 1 |
|
Re:mysql bit?
|
|
Posted: 2007/07/04 03:28 |
|
|
|
|
Hello Sally,
you're right in that: tinyint is the datatype to prefer (although any numeric type should work), see: http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html
if possible, please add boolean field mapping.
Because MySQL provides no boolean datatype, boolean field mapping is not possible, I think. Who should know, if a field is boolean or really tinyint (i.e. contains values other than 0 and 1)? As long as values in field are only 0 and 1, the (Delphi-)datatypes 'boolean' and 'numeric' are compatible. You can address a numeric field like MyField.AsBoolean := true;
| and respectivly while reading from that field.
But Dmitry should say something to that 'problem'.
Regards,
Knut
|
|