[pgjdbc/pgjdbc] b6ab27: fix: improper relative cursor movement (#1462)
Nikolai Ivanov <[email protected]> Mon, 08 Apr 2019 10:52:04 +0000 (UTC)
| Newsgroups | gmane.comp.db.postgresql.jdbc |
|---|---|
| Message-ID | <pgjdbc/pgjdbc/push/refs/heads/master/[email protected]> |
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: b6ab27c170ebeb88728f33207924d664ce7f7d77
https://github.com/pgjdbc/pgjdbc/commit/b6ab27c170ebeb88728f33207924d664ce7f7d77
Author: Nikolai Ivanov <[email protected]>
Date: 2019-04-08 (Mon, 08 Apr 2019)
Changed paths:
M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/ResultSetTest.java
Log Message:
-----------
fix: improper relative cursor movement (#1462)
Fix a wrong relative cursor movement when a new calculated index is
negative (beyond the first row). According to the java-doc, in this
case the position leaves before the first row. Current implementation
of the 'relative' method delegates the movement to the 'absolute' method
which treats a negative index with respect to the end of the result set.