Page 1 of 1

firemonkey sql querry programatically

Posted: Tue 31 Jul 2012 15:48
by geanni
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.

Re: firemonkey sql querry programatically

Posted: Wed 01 Aug 2012 08:30
by AndreyZ
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.

Re: firemonkey sql querry programatically

Posted: Wed 01 Aug 2012 12:48
by geanni
Hi,
This was the problem.

Thank you,
Geanni

Re: firemonkey sql querry programatically

Posted: Wed 01 Aug 2012 13:13
by AndreyZ
Feel free to contact us if you have any further questions about MyDAC.