You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Index: /Workspaces-JMeter/Jmeter/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java
===================================================================--- /Workspaces-JMeter/Jmeter/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java (revision 751535)+++ /Workspaces-JMeter/Jmeter/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java (working copy)@@ -444,8 +444,8 @@
} else {
sb.append('\t');
}
- if (jmvars != null && i < varnames.length) {- String name = varnames[i].trim();+ if (jmvars != null && i <= varnames.length) {+ String name = varnames[i - 1].trim();
if (name.length()>0){ // Save the value in the variable if present
jmvars.put(name+UNDERSCORE+j, o == null ? null : o.toString());
}
@milamberspace (Bug 46821):
In lastest svn (r747176).
When use a select request in JDBC sampler (with several column names), the first column aren't saved in JMeter variables.
Version: Nightly
Severity: major
OS: All
The text was updated successfully, but these errors were encountered: