snapshot - src: Since oracle does return '0' for rowcount, even when

From: cunha17(at)pgfoundry(dot)org (User Cunha17)
To: pgsql-committers(at)postgresql(dot)org
Subject: snapshot - src: Since oracle does return '0' for rowcount, even when
Date: 2007-09-18 03:14:22
Message-ID: 20070918031422.4CF5521767F@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Since oracle does return '0' for rowcount, even when there is more than zero rows returned, it broke the code.
Now there is a workaround based only on fetchrow_array behaviour (returning undef or error when there is no more records to retrieve) and the count of records retrieved with the current fetch.

Modified Files:
--------------
src/pl:
performCompleteRefresh.pl (r1.7 -> r1.8)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/snapshot/src/pl/performCompleteRefresh.pl.diff?r1=1.7&r2=1.8)
src/pl/db/oracle:
cursor.pl (r1.1 -> r1.2)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/snapshot/src/pl/db/oracle/cursor.pl.diff?r1=1.1&r2=1.2)

Browse pgsql-committers by date

  From Date Subject
Next Message User Cunha17 2007-09-18 03:31:06 snapshot - src: Fixing FastRefresh for oracle.
Previous Message Bruce Momjian 2007-09-18 01:52:39 pgsql: Doc reminder that integer pg version also needs updating.