QueryRecCount on ODBC

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
gangus
Posts: 1
Joined: Thu 27 Jan 2011 06:14

QueryRecCount on ODBC

Post by gangus » Thu 22 Mar 2012 01:09

Hi,
I use ODBC to connect to SQL Anywhere. I have a TUniQuery component on a form with a simple query, 'select * from Customer'.
I have Fetchall in Specific options set to False and FetchRows at the default value of 25. The query opens fine.

If I then set QueryRecCount to true in Options, it gives me an SQL syntax error when I try to open the query..... If I then switch QueryRecCount back to false ( with no other changes ), it works fine again.

If Fetchall is TRUE I have no problems, but this value is slow on networks with large datasets being displayed in a TDBGrid.......

Also, is there any way of having FetchALL default to 'FALSE' when I drop a TUniQuery on a form.........

Cheers,
Gavin

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

Post by AlexP » Thu 22 Mar 2012 09:23

Hello,

Thank you for the information, we have reproduced and fixed the problem.
This fix will be included in the next build.

Post Reply