-
-
Notifications
You must be signed in to change notification settings - Fork 334
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
Batched function calls result in syntax errors on Postgres #2286
Comments
Hi @yeroc, Thank you for opening an issue with the Jdbi project! We will need a bit of time digging into this. This sounds like a bug in Jdbi. I am a bit surprised seeing the |
@hgschmie Thanks for responding. Looking at the stacktrace more carefully I suspect the issue is that JDBI must be always batching these on a JDBC I suspect this worked for us on Oracle because that driver must be more lenient about |
Alternatively, I suppose a separate |
Closing, still tracked in #2390. |
We had some code that implemented batched calls of a SQL function. Simplified code:
This code works fine on Oracle but fails when run against Postgres (actually EnterpriseDB's flavour) with the following:
I've confirmed this isn't a driver/database issue by porting the above code to raw JDBC which works fine so I'm at a loss as to why it fails using JDBI:
NOTE: We're not using the
PostgresPlugin
typically but I did try it with the Postgres plugin and got the same result.The text was updated successfully, but these errors were encountered: