How can i use Field type booelan for mysql table with Delphi
Posted on 2010-08-17
I use mysql, my sql odbc and Delphi (BDE components because i need to keep the same application for mysql table or paradox table or access table).
With access for instance my field may have boolean type in Delphi and my code is based on this.
But with mysql, the type is tinyint in mysql and arrive in smallint in Delphi DBE component
How may i convert this tinyint in boolean in a systematic way to avoid adapt and change code ?