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 capability to call Stored Procedures to JDBC Sink #3155

Open
dalcorta opened this issue Jul 7, 2024 · 0 comments
Open

Add capability to call Stored Procedures to JDBC Sink #3155

dalcorta opened this issue Jul 7, 2024 · 0 comments

Comments

@dalcorta
Copy link

dalcorta commented Jul 7, 2024

As a user, I need to make the Jdbc Sink be able to call stored procedures.

This is not a difficult task, just need to modify WriteJdbcP replace with this block.

if (updateQuery.trim().startsWith("{") && updateQuery.trim().endsWith("}")
                    && updateQuery.toUpperCase().contains("CALL")) {
    statement = connection.prepareCall(updateQuery);
} else {
    statement = connection.prepareStatement(updateQuery);
}
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

1 participant