You are not logged in.
Pages: 1
Hi ab,
if I define a custom SQL-class inherited from TSQLRecord with a boolean field and let the ORM create the corresponding table in a MySQL database, the boolean field is created as int(11) and not as tinyint(1) which is a type for the boolean-values in MySQL. After the table creation I have a problem to read this field in delphi. I get an error something like "... this is not a boolean value type..."
How could I solve this problem through the ORM?
Thanks!
Offline
Create the table by hand, before the ORM tries to create it.
by hand you mean executing a custom SQL "create table..."?
Offline
Ok, thx for your answer, I also did solve the problem in this way, but I thought I could do it without custom SQL code and let it do the ORM for me
Last edited by cypriotcalm (2015-05-19 09:04:19)
Offline
Pages: 1