Page 1 of 1

ODBC provider and Query in Ingres database

Posted: Mon 08 Feb 2016 15:31
by mariot
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

Re: ODBC provider and Query in Ingres database

Posted: Tue 09 Feb 2016 09:00
by AlexP
Hello,

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

Re: ODBC provider and Query in Ingres database

Posted: Tue 09 Feb 2016 14:43
by mariot
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.

Re: ODBC provider and Query in Ingres database

Posted: Wed 10 Feb 2016 10:03
by AlexP
You are welcome. Feel free to contact us if you have any further questions.