[pgjdbc/pgjdbc] 4ab5cc: feat: support fetching a REF_CURSOR using getObjec...

From: Philippe Marschall <philippe(dot)marschall(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] 4ab5cc: feat: support fetching a REF_CURSOR using getObjec...
Date: 2017-04-09 20:03:05
Message-ID: 58ea93793cd70_73f73faf7981dc34122979@hookshot-fe1-cp1-prd.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: 4ab5ccb7a299cfcec8a5b1cddf612d3f828fa157
https://github.com/pgjdbc/pgjdbc/commit/4ab5ccb7a299cfcec8a5b1cddf612d3f828fa157
Author: Philippe Marschall <philippe(dot)marschall(at)gmail(dot)com>
Date: 2017-04-09 (Sun, 09 Apr 2017)

Changed paths:
M pgjdbc/src/main/java/org/postgresql/jdbc/PgCallableStatement.java
A pgjdbc/src/test/java/org/postgresql/test/jdbc42/Jdbc42CallableStatementTest.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc42/Jdbc42TestSuite.java

Log Message:
-----------
feat: support fetching a REF_CURSOR using getObject

Since DatabaseMetaData#supportsRefCursors now reports true
frameworks like Hibernate now use
callableStatement.getObject(int, ResultSet.class) to fetch the
REF_CURSOR.

Only support ResultSet.class as an argument to keep the patch simple.

Closes: #794

Browse pgsql-jdbc by date

  From Date Subject
Next Message Vladimir Sitnikov 2017-04-09 21:54:34 Re: New driver logging proposal
Previous Message Daniel Migowski 2017-04-09 10:00:40 Re: New driver logging proposal