Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow OUT parameter registration when using CallableStatement na… #1561

Merged
merged 2 commits into from Nov 26, 2019

Conversation

gregn123
Copy link
Contributor

@gregn123 gregn123 commented Sep 5, 2019

…tive CALL

Currently, using CallableStatement, the PGJDBC driver will allow invocation of procedures using
the native "call myproc(...)" syntax, provided the procedure only has IN parameters or no
parameters.
However, if the procedure has any INOUT parameters, then an attempt to invoke the
CallableStatement's registerOutParameter() method, which is required in order to register the OUT
part of the INOUT parameter, will fail with the following error:
This statement does not declare an OUT parameter. Use { ?= call ... } to declare one.

This fixes issue: #1545

@AppVeyorBot
Copy link

Build pgjdbc 1.0.432 failed (commit b9f04cbeb7 by @gregn123)

…tive CALL

Currently, using CallableStatement, the PGJDBC driver will allow invocation of procedures using
the native "call myproc(...)" syntax, provided the procedure only has IN parameters or no
parameters.
However, if the procedure has any INOUT parameters, then an attempt to invoke the
CallableStatement's registerOutParameter() method, which is required in order to register the OUT
part of the INOUT parameter, will fail with the following error:
   This statement does not declare an OUT parameter.  Use { ?= call ... } to declare one.

This fixes issue: pgjdbc#1545
@AppVeyorBot
Copy link

Build pgjdbc 1.0.434 failed (commit 215fb8f29b by @gregn123)

@codecov-io
Copy link

codecov-io commented Sep 5, 2019

Codecov Report

Merging #1561 into master will increase coverage by 0.11%.
The diff coverage is 37.5%.

@@             Coverage Diff              @@
##             master    #1561      +/-   ##
============================================
+ Coverage     68.94%   69.05%   +0.11%     
- Complexity     4032     4042      +10     
============================================
  Files           179      179              
  Lines         16750    16758       +8     
  Branches       2740     2744       +4     
============================================
+ Hits          11549    11573      +24     
+ Misses         3931     3917      -14     
+ Partials       1270     1268       -2

@AppVeyorBot
Copy link

Build pgjdbc 1.0.542 completed (commit 8a3bf60ef7 by @gregn123)

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.

None yet

4 participants