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

Support out parameters on stored procedures #3

Open
ryaneberly opened this issue Sep 4, 2014 · 3 comments
Open

Support out parameters on stored procedures #3

ryaneberly opened this issue Sep 4, 2014 · 3 comments

Comments

@ryaneberly
Copy link

<script connection-id="db"> call GETINFO( ?Prefix , ?PolicyNumber , ?); </script>

This fails when JDBC attempts to call the procedure. We often use a single output parameter to track error conditions.
It would great if the the procedure would be called w/o error, better still if there was a way to put the result into a variable.

@ejboy
Copy link
Member

ejboy commented Oct 29, 2014

Thank you for bringing it up. This was raised several times already and I'm going to implement it. It will be based on the JDBC escape syntax defined in CallableStatement:

{?= call <procedure-name>[(<arg1>,<arg2>, ...)]}
{call <procedure-name>[(<arg1>,<arg2>, ...)]}

@ryaneberly
Copy link
Author

Wonderful - I'm happy to help test it.
Scriptella's a great tool.

@ejboy
Copy link
Member

ejboy commented Nov 5, 2014

Actually I was able to use output parameters after calling a stored procedure in mysql. See example at http://stackoverflow.com/a/26725585/1129542

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

No branches or pull requests

2 participants