You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2014/05/25 22:34:38 UTC
svn commit: r1597469 - in /jmeter/trunk:
src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java
xdocs/changes.xml
Author: pmouawad
Date: Sun May 25 20:34:37 2014
New Revision: 1597469
URL: http://svn.apache.org/r1597469
Log:
Bug 46932 - Alias given in select statement is not used as column header in response data for a JDBC request
Bugzilla Id: 46932
Modified:
jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java
jmeter/trunk/xdocs/changes.xml
Modified: jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java?rev=1597469&r1=1597468&r2=1597469&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java (original)
+++ jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java Sun May 25 20:34:37 2014
@@ -386,7 +386,7 @@ public abstract class AbstractJDBCTestEl
int numColumns = meta.getColumnCount();
for (int i = 1; i <= numColumns; i++) {
- sb.append(meta.getColumnName(i));
+ sb.append(meta.getColumnLabel(i));
if (i==numColumns){
sb.append('\n');
} else {
@@ -414,7 +414,7 @@ public abstract class AbstractJDBCTestEl
row = new HashMap<String, Object>(numColumns);
results.add(row);
}
- row.put(meta.getColumnName(i), o);
+ row.put(meta.getColumnLabel(i), o);
}
if (o instanceof byte[]) {
o = new String((byte[]) o, ENCODING);
Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1597469&r1=1597468&r2=1597469&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml (original)
+++ jmeter/trunk/xdocs/changes.xml Sun May 25 20:34:37 2014
@@ -136,6 +136,7 @@ A workaround is to use a Java 7 update 4
<li><bugzilla>55999</bugzilla> - Scroll bar on jms point-to-point sampler does not work when content exceeds display</li>
<li><bugzilla>56198</bugzilla> - JMSSampler : NullPointerException is thrown when JNDI underlying implementation of JMS provider does not comply with Context.getEnvironment contract</li>
<li><bugzilla>56428</bugzilla> - MailReaderSampler - should it use mail.pop3s.* properties?</li>
+<li><bugzilla>46932</bugzilla> - Alias given in select statement is not used as column header in response data for a JDBC request.Based on report and analysis of Nicola Ambrosetti</li>
</ul>
<h3>Controllers</h3>
@@ -236,6 +237,7 @@ A workaround is to use a Java 7 update 4
<ul>
<li>James Liang (jliang at andera.com)</li>
<li>Emmanuel Bourg (ebourg at apache.org)</li>
+<li>Nicola Ambrosetti (ambrosetti.nicola at gmail.com)</li>
</ul>
<br/>