pgsql/src/interfaces/jdbc/org/postgresql/jdbc2 (ResultSet.java)

From: Bruce Momjian - CVS <momjian>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql/src/interfaces/jdbc/org/postgresql/jdbc2 (ResultSet.java)
Date: 2000-06-09 17:27:57
Message-ID: 200006091727.e59HRvq10014@hub.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Date: Friday, June 9, 2000 @ 13:27:57
Author: momjian

Update of /home/projects/pgsql/cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2
from hub.org:/home/projects/pgsql/tmp/cvs-serv9969/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2

Modified Files:
ResultSet.java

----------------------------- Log Message -----------------------------

This patch fixes the 0-based/1-based result set indexing problem for
absolute. It also makes it more compliant with the interface
specification in Sun's documentation;

1. absolute(0) should throw an exception.
2. absolute(>num-records) should set the current row to after the last
record in addition to returning false.
3. absolute(<num-records) should set the current row to before the first
record in addition to returning false.

These operations in the existing code just return false and don't change
current_row.

These changes required a minor change to relative(int) since it calls
absolute(int)

The attached patch is against the cvs repository tree as of this morning.

Also, who is in charge of maintaining the jdbc driver? I'm working on
getArray for the jdbc2 driver, but it's going to require three more
classes to be added to the driver, and thus three more source files
in the repository. Is there someone I can contact directly to ask about
this?

Travis Bauer | CS Grad Student | IU |www.cs.indiana.edu/~trbauer

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian - CVS 2000-06-09 17:31:25 pgsql/doc (TODO)
Previous Message Bruce Momjian - CVS 2000-06-09 16:35:54 REL7_0_PATCHES pgsql/doc (FAQ_BSDI)