ODBC provider and Query in Ingres database

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
mariot
Posts: 17
Joined: Mon 02 Feb 2015 11:35

ODBC provider and Query in Ingres database

Post by mariot » Mon 08 Feb 2016 15:31

I connect to database Ingres 10 with ODBC provider. Query "SELECT * FROM tablename" is returning only first record. Is it bug in UniDAC?
When I connected to other databases (e.g. Oracle), it return all records.
In Delphi Firedac ODBC those query return all record - but must be added connection parameter "ODBCAdvanced=SELECTLOOPS=N" (otherwise error).

Best regards,
Mario Tkacik

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

Re: ODBC provider and Query in Ingres database

Post by AlexP » Tue 09 Feb 2016 09:00

Hello,

To solve the issue, you should set the FetchRows property of the Dataset to 1

mariot
Posts: 17
Joined: Mon 02 Feb 2015 11:35

Re: ODBC provider and Query in Ingres database

Post by mariot » Tue 09 Feb 2016 14:43

Setting the parameter FetchRow to 1 helped, but only partially. When I run subqueries and when the FetchRow param is set to 1 and UniDirectional param is set to true, the subquery execution fails. I must set UniDirectional parameter to false - then all seems OK :)
Thanks for your help.

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

Re: ODBC provider and Query in Ingres database

Post by AlexP » Wed 10 Feb 2016 10:03

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

Post Reply