ASF Bugzilla – Attachment 26222 Details for
Bug 50173
JDBCSampler discards ResultSet from a PreparedStatement.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
File with SVN diff patch details.
JMeter-50173.patch (text/plain), 1011 bytes, created by
whitingjr
on 2010-10-28 10:18:29 UTC
(
hide
)
Description:
File with SVN diff patch details.
Filename:
MIME Type:
Creator:
whitingjr
Created:
2010-10-28 10:18:29 UTC
Size:
1011 bytes
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P JMeter-trunk >Index: src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java >=================================================================== >--- src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java (revision 1028280) >+++ src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java (working copy) >@@ -204,8 +204,8 @@ > } else if (PREPARED_SELECT.equals(_queryType)) { > PreparedStatement pstmt = getPreparedStatement(conn); > setArguments(pstmt); >- pstmt.executeQuery(); >- String sb = resultSetsToString(pstmt,true,null); >+ boolean hasResultSet = pstmt.execute(); >+ String sb = resultSetsToString(pstmt,hasResultSet,null); > res.setResponseData(sb.getBytes(ENCODING)); > } else if (PREPARED_UPDATE.equals(_queryType)) { > PreparedStatement pstmt = getPreparedStatement(conn);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 50173
: 26222