You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2014/11/26 20:56:38 UTC

[Bug 57266] using executeQuery() method for CallableStatements in JDBC Sample

https://issues.apache.org/bugzilla/show_bug.cgi?id=57266

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 OS|                            |All

--- Comment #1 from Sebb <se...@apache.org> ---
Actually there are 3 execute methods:

boolean java.sql.PreparedStatement.execute()
ResultSet java.sql.PreparedStatement.executeQuery()
int java.sql.PreparedStatement.executeUpdate()

It's not trivial to determine whether an SQL statement is a Query or an Update.
[Nor should JMeter have to make this determination.]
So the user will need to specify whether to use executeQuery() or
executeUpdate().

Having said that, JMeter already supports PREPARED_SELECT and PREPARED_UPDATE.

Have you tried using PREPARED_QUERY?

-- 
You are receiving this mail because:
You are the assignee for the bug.