apache / apache/jmeter

using executeQuery() method for CallableStatements in JDBC Sample

Open
#3,486 7 comments 0 reactions 0 assignees View on GitHub
enhancement need info os: All P2
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.