firemonkey sql querry programatically

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
geanni
Posts: 10
Joined: Wed 28 Jul 2010 22:18

firemonkey sql querry programatically

Post by geanni » Tue 31 Jul 2012 15:48

Hi,
When creating a query programatically like this:

TMyQuery* myQuery = new TMyQuery(this);
myQuery->Connection = MyConnection1;

UnicodeString str;
str = "SELECT id, first_name, city, country, visits, phone, VIP, room_nr, email FROM customers ";
myQuery->SQL->Clear();
myQuery->SQL->Add(str);
myQuery->Execute();
TFields* fields =myQuery->Fields;
int cnt = fields->Count;

The maximum number of fields is always 6. We need more then 6 fields. Can you reproduce the bug and give us a solution?
Thanks.

AndreyZ

Re: firemonkey sql querry programatically

Post by AndreyZ » Wed 01 Aug 2012 08:30

Hello,

This is a restriction of the MyDAC Trial version only. The maximum number of columns in a dataset is limited to six fields for Win x64, OSX, and Linux platforms. You will not have this problem with a licensed MyDAC version.

geanni
Posts: 10
Joined: Wed 28 Jul 2010 22:18

Re: firemonkey sql querry programatically

Post by geanni » Wed 01 Aug 2012 12:48

Hi,
This was the problem.

Thank you,
Geanni

AndreyZ

Re: firemonkey sql querry programatically

Post by AndreyZ » Wed 01 Aug 2012 13:13

Feel free to contact us if you have any further questions about MyDAC.

Post Reply