TOraDataSet bug?
Posted: Tue 17 Oct 2006 08:41
Greetings,
we need to use LOBs in our application but none of our providers work properly.
That is why we are discussing the purchase of ODAC.
BUT
there seem to be some problems.
Like with TOraDataSet and all derived classes (TOraQuery, TOraSmartQuery, ...) or maybe we haven't set it right.
1) DataSet.Fields.CurValue does not work (ADOdataset works), we would have to replace all occurences of .CurValue to .Value which may cause problems because we use connection to multiple databases (Oracle, MsSql, Interbase, ...) in our application.
- This property is implemented in ClientDataSet (ADO and DBEX DataSets both implement this property).
2) DataSet.RecordCount property does not work properly. Maybe because of some performance tuning?
- RecordCount only returns number of the first 25 records. When you access the 26th record (eg. by DataSet.Next function) then it returns another 25 records' count (=> 50). We would have to walk through all dataset records (till EOF) to actually get the correct RecordCount.
- edit: or by accessing the last field with DataSet.Last.
- Is it a bug or is it possible to bypass this somehow?
We cannot simply replace these functions/properties with different ones because we need the compatibility with other providers.
Our application is large (source code files' size is over 60MB).
Thank you in advance.
we need to use LOBs in our application but none of our providers work properly.
That is why we are discussing the purchase of ODAC.
BUT
there seem to be some problems.
Like with TOraDataSet and all derived classes (TOraQuery, TOraSmartQuery, ...) or maybe we haven't set it right.
1) DataSet.Fields.CurValue does not work (ADOdataset works), we would have to replace all occurences of .CurValue to .Value which may cause problems because we use connection to multiple databases (Oracle, MsSql, Interbase, ...) in our application.
- This property is implemented in ClientDataSet (ADO and DBEX DataSets both implement this property).
2) DataSet.RecordCount property does not work properly. Maybe because of some performance tuning?
- RecordCount only returns number of the first 25 records. When you access the 26th record (eg. by DataSet.Next function) then it returns another 25 records' count (=> 50). We would have to walk through all dataset records (till EOF) to actually get the correct RecordCount.
- edit: or by accessing the last field with DataSet.Last.
- Is it a bug or is it possible to bypass this somehow?
We cannot simply replace these functions/properties with different ones because we need the compatibility with other providers.
Our application is large (source code files' size is over 60MB).
Thank you in advance.
Code: Select all
ODAC 5.80.036 Trial
OCI: Version 9.2.0.1.0
DB: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production