-
Notifications
You must be signed in to change notification settings - Fork 79
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 StoredProcedureQuerySender #5148
Conversation
…methods that use just the query-string, to take that query string as parameter so that fewer unneeded instances of QEC are created. In FixedQuerySender, translate query only once instead of on every invocation.
…e parameter type from the database.
Sonatype Lift is retiringSonatype Lift will be retiring on Sep 12, 2023, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a disappointment, and Sonatype is committed to helping you transition off it seamlessly. If you’d like to retain your data, please export your issues from the web console. |
core/src/main/java/nl/nn/adapterframework/jdbc/StoredProcedureQuerySender.java
Show resolved
Hide resolved
return result; | ||
} | ||
try { | ||
return getResult(new StoredProcedureResultWrapper((CallableStatement) statement, statement.getParameterMetaData(), outputParameterPositions)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RESOURCE_LEAK: resource of type nl.nn.adapterframework.jdbc.StoredProcedureResultWrapper
acquired by call to new()
at line 101 is not released after line 101.
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
Command | Usage |
---|---|
@sonatype-lift ignore |
Leave out the above finding from this PR |
@sonatype-lift ignoreall |
Leave out all the existing findings from this PR |
@sonatype-lift exclude <file|issue|path|tool> |
Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file |
Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
Some code cleanups in existing JDBC code. Rewrite the database changelog to be more compact and readable. Oracle still dubious, creating stored procedures from Liquibase either not working or still flaky.
core/src/main/java/nl/nn/adapterframework/jdbc/StoredProcedureQuerySender.java
Show resolved
Hide resolved
This way they work, reliably and for all databases. Oracle Stored Procedure tests now enabled for supported features. Add a bit more logging to the JDBC test runMigrator function to get more Liquibase status info.
core/src/main/java/nl/nn/adapterframework/jdbc/dbms/IDbmsSupport.java
Outdated
Show resolved
Hide resolved
Address review comments and fix typos.
# Conflicts: # test/src/main/webapp/META-INF/context.xml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Laten we hier maar mee beginnen.
… (why was this not a problem in unit tests?)
TODO:
configure()
Testing with BLOB/CLOB fieldsWill be separate issue.Add support for refcursor OUT parameters (multi-row results from output parameter not direct returns).Will be separate issue.