Page 1 of 1

TMySQLDialect - Boolean data type is not supported

Posted: Wed 23 Mar 2016 09:27
by elion
Hi there,

I have a MySQL table mapped through the EntityDeveloper. In the database table the column is TINYINT(1). The developer mapps it right as Boolean. But if I execute the folowing code, I get the error which is in the subject.

Code: Select all

    Query := Linq.From(FEntityContext['table']).Select; 
    SomeData := FEntityContext.GetEntities<TTable>(Query);  // <------ here error
Can you help me please? Thank you!

Re: TMySQLDialect - Boolean data type is not supported

Posted: Wed 23 Mar 2016 11:04
by AlexP
Hello,

We will add support for the Boolean type in the next version

Re: TMySQLDialect - Boolean data type is not supported

Posted: Wed 23 Mar 2016 11:26
by elion
AlexP wrote:Hello,

We will add support for the Boolean type in the next version
When will come the next version?

What workaround could you recommend for the boolean data type?

Re: TMySQLDialect - Boolean data type is not supported

Posted: Wed 23 Mar 2016 11:49
by AlexP
The new EntityDAC version will be released as soon as the new RAD Studio version is released. The new RAD Studio version is planned to be released shortly.
If you have a source version, we can tell you where to change the code to get the correct behavior.

Re: TMySQLDialect - Boolean data type is not supported

Posted: Wed 23 Mar 2016 12:18
by elion
AlexP wrote:The new EntityDAC version will be released as soon as the new RAD Studio version is released. The new RAD Studio version is planned to be released shortly.
If you have a source version, we can tell you where to change the code to get the correct behavior.
Okay, thank you very much! I am trying a trial version, but if it fullfills all my needs, I will buy it!

Re: TMySQLDialect - Boolean data type is not supported

Posted: Wed 23 Mar 2016 12:37
by AlexP
You are welcome. Feel free to contact us if you have any further questions.