View | Details | Raw Unified | Return to bug 53072
Collapse All | Expand All

(-)src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java (-3 / +7 lines)
Lines 188-196 Link Here
188
            } else if (PREPARED_SELECT.equals(_queryType)) {
188
            } else if (PREPARED_SELECT.equals(_queryType)) {
189
                PreparedStatement pstmt = getPreparedStatement(conn);
189
                PreparedStatement pstmt = getPreparedStatement(conn);
190
                setArguments(pstmt);
190
                setArguments(pstmt);
191
                boolean hasResultSet = pstmt.execute();
191
                ResultSet rs = null;
192
                String sb = resultSetsToString(pstmt,hasResultSet,null);
192
                try {
193
                return sb.getBytes(ENCODING);
193
                    rs = pstmt.executeQuery();
194
                    return getStringFromResultSet(rs).getBytes(ENCODING);
195
                } finally {
196
                    close(rs);
197
                }
194
            } else if (PREPARED_UPDATE.equals(_queryType)) {
198
            } else if (PREPARED_UPDATE.equals(_queryType)) {
195
                PreparedStatement pstmt = getPreparedStatement(conn);
199
                PreparedStatement pstmt = getPreparedStatement(conn);
196
                setArguments(pstmt);
200
                setArguments(pstmt);

Return to bug 53072