using executeQuery() method for CallableStatements in JDBC Sample
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 5
Description
**Andrea Coloru** ([Bug 57266](https://bz.apache.org/bugzilla//show_bug.cgi?id=57266&redirect=false)):
Hi
I have to test some procedures for a particulare Database whose jdbc driver only supports the executeQuery() method for CallableStatement object.
I saw the source code of the class org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler and it uses the execute() method like below
} else if (CALLABLE.equals(_queryType)) {
CallableStatement cstmt = getCallableStatement(conn);
int out[]=setArguments(cstmt);
// A CallableStatement can return more than 1 ResultSets
// plus a number of update counts.
boolean hasResultSet = cstmt.execute();
Is it possible to improve the callable in a way that the user can choose which of the 2 methods to use?
Thanks
Andrea
OS: All
Contributor guide
Assessment
This issue has not been assessed yet.