Skip to content

feat: support fetching a REF_CURSOR using getObject - #809

Merged
vlsi merged 1 commit into
pgjdbc:masterfrom
marschall:ref-cursor-getObject
Apr 9, 2017
Merged

vlsi merged 1 commit into
pgjdbc:masterfrom
marschall:ref-cursor-getObject

Conversation

@marschall

Copy link
Copy Markdown
Contributor

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

@marschall
marschall force-pushed the ref-cursor-getObject branch from c1d6aa7 to c4516d1 Compare April 8, 2017 15:10
@codecov-io

codecov-io commented Apr 8, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #809 into master will increase coverage by 0.03%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master     #809      +/-   ##
============================================
+ Coverage     65.26%   65.29%   +0.03%     
- Complexity     3518     3522       +4     
============================================
  Files           166      166              
  Lines         15226    15228       +2     
  Branches       2466     2466              
============================================
+ Hits           9937     9943       +6     
+ Misses         4100     4098       -2     
+ Partials       1189     1187       -2

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 170d9c2...50428a4. Read the comment docs.

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: pgjdbc#794
@marschall
marschall force-pushed the ref-cursor-getObject branch from c4516d1 to 50428a4 Compare April 8, 2017 18:30
@vlsi vlsi added this to the 42.1.0 milestone Apr 9, 2017
@vlsi
vlsi merged commit 4ab5ccb into pgjdbc:master Apr 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants