Page 1 of 1

Question on TOraTable CalcFields behavior

Posted: Thu 19 Apr 2007 09:38
by FanderlF
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

Posted: Thu 19 Apr 2007 12:11
by Plash
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.

Posted: Thu 19 Apr 2007 12:59
by FanderlF
The TOraTable points to a view containing no rows.

Posted: Thu 19 Apr 2007 14:08
by Plash
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.

Posted: Fri 20 Apr 2007 08:00
by FanderlF
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)