[pgjdbc/pgjdbc] fcb28c: feat: improve ResultSet#getObject(int, Class) (#93...

From: Philippe Marschall <philippe(dot)marschall(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] fcb28c: feat: improve ResultSet#getObject(int, Class) (#93...
Date: 2017-09-26 06:44:30
Message-ID: 59c9f74e917f4_72813fce2b94fc30427a0@hookshot-fe-92cdb05.cp1-iad.github.net.mail
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: fcb28c7c87a18ba6673b7fd3a48f3421410eb942
https://github.com/pgjdbc/pgjdbc/commit/fcb28c7c87a18ba6673b7fd3a48f3421410eb942
Author: Philippe Marschall <philippe(dot)marschall(at)gmail(dot)com>
Date: 2017-09-26 (Tue, 26 Sep 2017)

Changed paths:
M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc4/jdbc41/GetObjectTest.java

Log Message:
-----------
feat: improve ResultSet#getObject(int, Class) (#932)

In the review of #813 various issues with the initial implementation of
CallableStatement#getObject(int, Class) showed up that
ResultSet#getObject(int, Class) also has. This commit gives both
methods the same behavior.

This commit contains the following changes

- make errors localizable
- add support for SMALLINT <-> Short
- add support for BIGINT <-> BigInteger
- add support for TIMESTAMP <-> java.util.Date
- swap INTEGER and SMALLINT position

Browse pgsql-jdbc by date

  From Date Subject
Next Message Sehrope Sarkuni 2017-09-28 12:54:10 [pgjdbc/pgjdbc] 097db5: feat: parse command complete message via regex (#9...
Previous Message Michael Paquier 2017-09-26 02:09:42 Re: [JDBC] Channel binding support for SCRAM-SHA-256