problem with smartfetch and order by

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
pincopallino
Posts: 16
Joined: Wed 03 Oct 2012 19:52

problem with smartfetch and order by

Post by pincopallino » Tue 30 Dec 2014 13:19

Hi,
I have a query with a parameter. For a mistake I enabled the SmartFetch and from that moment I was not able to change the order of records (by clicking in the CRGrid or by code).
Found that the parameter value was appended at end of SQL text and for this tha server reported an error.
After disabling SmartFetch the program returned to work correctly.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: problem with smartfetch and order by

Post by AlexP » Tue 30 Dec 2014 15:05

Hello,

Yes, this is a restriction on using the SmartFetch mode. You can't change sort order in this mode. Sorting is available only when the LiveBlock option is disabled.

pincopallino
Posts: 16
Joined: Wed 03 Oct 2012 19:52

Re: problem with smartfetch and order by

Post by pincopallino » Wed 31 Dec 2014 12:20

Thanks!
I need to better read the documentation...

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: problem with smartfetch and order by

Post by AlexP » Sun 04 Jan 2015 07:31

You are welcome. Feel free to contact us if you have any further questions.

Post Reply