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

Add stored procedure OUT values to DEBUG log output #2639

Closed
lukaseder opened this issue Jul 12, 2013 · 3 comments
Closed

Add stored procedure OUT values to DEBUG log output #2639

lukaseder opened this issue Jul 12, 2013 · 3 comments

Comments

@lukaseder
Copy link
Member

This was requested here:
https://groups.google.com/forum/#!topic/jooq-user/LgX0pAnIGSg

@lukasz-bajor
Copy link

Hi i'm willingto help, if you could just point some places in code to get me started

@lukaseder
Copy link
Member Author

@lukasz-bajor: Thanks for the offer. Pull requests are probably the best way to contribute in this case. However, there's a bit of work to do, in order to do this correctly / consistently. Fetching OUT parameters from a stored procedure should actually work in a similar way as fetching Result objects from a regular ResultQuery. This means that the ExecuteContext and ExecuteListener specs need to be adapted accordingly.

Note: This adapted listener behaviour might match the way Postgres deals with stored procedures and OUT parameters, which really produce rows, just like regular SELECT statements.

If you still want to try to tackle this problem, org.jooq.impl.AbstractRoutine is the place where you can start digging into the code. org.jooq.tools.LoggerListener is the type that does the current default logging.

@lukaseder
Copy link
Member Author

This might be solved automatically by implementing #2640

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants