You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2014/04/05 21:13:21 UTC

[Bug 46932] alias given in select statement is not used as column header in response data for a JDBC request

https://issues.apache.org/bugzilla/show_bug.cgi?id=46932

ambrosetti.nicola@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #3 from ambrosetti.nicola@gmail.com ---
This bug is still present. The issue is not due to a bug in any JDBC driver,
but rather in the JDBC Sampler. In particular if you look at the code in 
src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java
you see that the method getStringFromResultSet(ResultSet rs) the method
ResultSetMetaData.getColumnName(i) is used (in two places) instead of
getColumnLabel(), which correctly returns the alias name.

See also:
http://stackoverflow.com/questions/12709814/column-aliasing-in-select-statements-doesnt-work-with-squirrel-sql-firebird
and 
http://bugs.mysql.com/bug.php?id=43684

-- 
You are receiving this mail because:
You are the assignee for the bug.