Question on TOraTable CalcFields behavior

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
FanderlF
Posts: 17
Joined: Thu 21 Dec 2006 13:43

Question on TOraTable CalcFields behavior

Post by FanderlF » Thu 19 Apr 2007 09:38

Hey,
We just updated to ODAC V6 and the I got an error in CalcFields function. It seems that this function is entered even if the table doesnt have any rows. Is this normal behaviour? V5 of ODAC just entered this function when having rows in a table.
Now I just put a

Code: Select all

DataSet->RecordCount > 0
arround my function and it works fine... Just wanted to now if the function was intended to do this.

Greetings,
Florian Fanderl

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 19 Apr 2007 12:11

Please specify whether the table has no rows because all the rows do not match the Filter condition of the dataset, or this table is empty in the database.

FanderlF
Posts: 17
Joined: Thu 21 Dec 2006 13:43

Post by FanderlF » Thu 19 Apr 2007 12:59

The TOraTable points to a view containing no rows.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 19 Apr 2007 14:08

We could not reproduce the problem. Please send to odac*crlab*com a complete small sample that demonstrates the problem, including script to create server objects.

FanderlF
Posts: 17
Joined: Thu 21 Dec 2006 13:43

Post by FanderlF » Fri 20 Apr 2007 08:00

hm :( can't rebuild the problem in a small example... i set it up as it is in my program, but there I don't have this behavior.
Isn't that necessary anyway :) works fine with:

Code: Select all

if( DataSet->RecordCount > 0)

Post Reply