Article View: borland.public.delphi.database
Article #229Re: ROWSET SIZE - DUPLICATE RECORDS
From: pfinster
Date: Wed, 29 May 2002 09:55
Date: Wed, 29 May 2002 09:55
60 lines
3289 bytes
3289 bytes
"pfinster" <pfinster@altavista.co.uk> wrote in message
news:d0PI8.2$D%4.83@newreader.ukcore.bt.net...
> Hi
>
> I have an unsupported application that uses BDE Administrator 5.0
connecting
> to a Personal Oracle 8 database and has ODBC connections to Progress
> databases.
>
> When querying a table in the Oracle database via BDE the records are
> returned twice. If I look at the table through the Oracle Navigator, the
> correct number of records exist and if I query the table using Oracle
> SQLPlus, the correct number of records are returned.
>
> It doesn't do this all the time and I have yet to determine a pattern,
> although I am told this is seen more frequently lately.
>
> I was grasping at straws by changing the ROWSET SIZE from 20 to 40, but it
> seems to have resolved the issue. Why? Can I always rely on this? What
is
> the best solution?
>
> Regards
> Ken
>
>
I found the solution on the Borland Developer Network:
Oracle 8 problems introduced in BDE 5.1.1. - by Borland Developer Support
Staff
Abstract:Setting ROWSET SIZE to 0 resolves the issues.
Previous to BDE 5.1.1, setting ROWSET SIZE for an alias connected to
Oracle 8 did nothing. BDE 5.1.1 added this as a new feature as a performance
enhancement to improve the speed when many records are fetched.
However, this new feature introduces 3 new problems:
a.. When the number of rows returned from a TTable or TQuery matches
a multiple of the setting of ROWSET SIZE data will be displayed twice.
b.. If the last row of a TTable or TQuery has fields which are blank
(NULL), the corresponding field in the first record will be blank as well.
This problem does not occur when using the Oracle 8.1.5 client (8i). When
using the Oracle 8.0.4 client R&D has determined this problem to be caused
by a bug in the Oracle 8.0.4 client. Therefore, ROWSET SIZE must be set to 0
when using the 8.0.4 client.
c.. Getting a list of tables in SQL Explorer may result in the error
"Translate Error. Value out of Bounds.".
The workaround for all of these problems at this time to set ROWSET
SIZE to 0.
----------------------------------------------------------------------------
----
Technical Details
Message-ID:
<4A1J8.2$Iw2.233@newreader.ukcore.bt.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!btnet-peer!btnet-peer0!btnet-feed5!btnet!newreader.ukcore.bt.net!not-for-mailReferences:
<d0PI8.2$D%4.83@newreader.ukcore.bt.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 115d96,2c28fdd615affc75 X-Google-Attributes: gid115d96,public X-Google-ArrivalTime: 2002-05-29 02:56:06 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!btnet-peer!btnet-peer0!btnet-feed5!btnet!newreader.ukcore.bt.net!not-for-mail From: "pfinster" <pfinster@altavista.co.uk> Newsgroups: borland.public.delphi.database References: <d0PI8.2$D%4.83@newreader.ukcore.bt.net> Subject: Re: ROWSET SIZE - DUPLICATE RECORDS Lines: 65 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: <4A1J8.2$Iw2.233@newreader.ukcore.bt.net> Date: Wed, 29 May 2002 09:55:12 GMT NNTP-Posting-Host: 217.33.24.98 X-Trace: newreader.ukcore.bt.net 1022666112 217.33.24.98 (Wed, 29 May 2002 10:55:12 BST) NNTP-Posting-Date: Wed, 29 May 2002 10:55:12 BST