]> granicus.if.org Git - postgresql/commit
This patch fixes the 0-based/1-based result set indexing problem for
authorBruce Momjian <bruce@momjian.us>
Fri, 9 Jun 2000 17:27:57 +0000 (17:27 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 9 Jun 2000 17:27:57 +0000 (17:27 +0000)
commitd3ef753686384256c0a1439b3afb023bd96589ff
tree5a310ed521cec03ac9e92cf396326edddb0e62ff
parentbd29cb0ee740459d2a389186c1c5cb37d3eb5ad4
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
src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java