Author: sebb Date: Mon Mar 9 00:18:04 2009 New Revision: 751560 URL: http://svn.apache.org/viewvc?rev=751560&view=rev Log: Bug 46821 - JDBC select request doesn't store the first column in the variables
Modified: jakarta/jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java jakarta/jmeter/trunk/xdocs/changes.xml Modified: jakarta/jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java?rev=751560&r1=751559&r2=751560&view=diff ============================================================================== --- jakarta/jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java (original) +++ jakarta/jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java Mon Mar 9 00:18:04 2009 @@ -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()); } Modified: jakarta/jmeter/trunk/xdocs/changes.xml URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/changes.xml?rev=751560&r1=751559&r2=751560&view=diff ============================================================================== --- jakarta/jmeter/trunk/xdocs/changes.xml (original) +++ jakarta/jmeter/trunk/xdocs/changes.xml Mon Mar 9 00:18:04 2009 @@ -187,6 +187,7 @@ <li>Bug 46435 - More verbose error msg for error 501 (Proxy Server)</li> <li>Bug 46491 - Incorrect value for the last variable in "CSV Data Set Config" (error in processing quoted strings)</li> <li>The JMeter variable "sample_variables" is sent to all server instances to ensure the data is available to the client.</li> +<li>Bug 46821 - JDBC select request doesn't store the first column in the variables</li> </ul> <h3>Improvements</h3> --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org