AS400 DB2 TUniQuery Returns only 1 Row!

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Andidreas
Posts: 16
Joined: Mon 20 Jan 2014 14:43

AS400 DB2 TUniQuery Returns only 1 Row!

Post by Andidreas » Mon 03 Mar 2014 14:39

Hi,

today i faced another issue...

I connected to our AS400 Database via the ODBC Provider.
First i tried to get all Records of a small table, so i used a Select * From Table1 SQL Statment.

The Query should return 925 Records, but the Query returns only one Row!
And now i don't know whats wrong. I hope you can help!


Some additional Informations:
- UniDAC Version 5.2.7
- Delphi Version RAD XE
- ODBC Driver Version for IBM 13.64.04.00 (32-bit [Windows 64-bit])
- TUniQuery.FetchRow = 1000
- TUniQuery.QueryRecCount = True

Andidreas
Posts: 16
Joined: Mon 20 Jan 2014 14:43

Re: AS400 DB2 TUniQuery Returns only 1 Row!

Post by Andidreas » Mon 03 Mar 2014 15:00

Ok... When i change the TUniQuery.FetchRows Parameter to one, it works!

But this is really confusing!!! Pls explain why i must set this Parameter to one!!!! :x

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

Re: AS400 DB2 TUniQuery Returns only 1 Row!

Post by AlexP » Tue 04 Mar 2014 12:52

Hello,

Please send us a link, where we can download the specified version of the driver to study the issue.

Andidreas
Posts: 16
Joined: Mon 20 Jan 2014 14:43

Re: AS400 DB2 TUniQuery Returns only 1 Row!

Post by Andidreas » Wed 05 Mar 2014 16:29

You can not use the ODBC Driver for the AS400 w/o a valid license.

So please find another way to study this Issue!
Maybe the ADO Component from Delphi can helps you?!

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

Re: AS400 DB2 TUniQuery Returns only 1 Row!

Post by AlexP » Thu 06 Mar 2014 10:26

We need to reproduce the problem in our components and on the driver, on which you reproduced the problem.

Post Reply