svn commit: r607683 - /jakarta/taglibs/proper/standard/trunk/src/javax/servlet/jsp/jstl/sql/ResultImpl.java

[email protected]
Newsgroups gmane.comp.jakarta.taglibs.devel
Message-ID <[email protected]>
Author: bayard
Date: Sun Dec 30 22:11:15 2007
New Revision: 607683

URL: http://svn.apache.org/viewvc?rev=607683&view=rev
Log:
Switching from getColumnName to getColumnLabel as per #43831. JDBC spec indicates that the name should be returned rather than the label, and it seems far more likely that a JSTL user will want the label despite the name of the variable 'columnNames'. 

Modified:
    jakarta/taglibs/proper/standard/trunk/src/javax/servlet/jsp/jstl/sql/ResultImpl.java

Modified: jakarta/taglibs/proper/standard/trunk/src/javax/servlet/jsp/jstl/sql/ResultImpl.java
URL: http://svn.apache.org/viewvc/jakarta/taglibs/proper/standard/trunk/src/javax/servlet/jsp/jstl/sql/ResultImpl.java?rev=607683&r1=607682&r2=607683&view=diff
==============================================================================
--- jakarta/taglibs/proper/standard/trunk/src/javax/servlet/jsp/jstl/sql/ResultImpl.java (original)
+++ jakarta/taglibs/proper/standard/trunk/src/javax/servlet/jsp/jstl/sql/ResultImpl.java Sun Dec 30 22:11:15 2007
@@ -68,7 +68,7 @@
         // Create the column name array
         columnNames = new String[noOfColumns];
         for (int i = 1; i <= noOfColumns; i++) {
-            columnNames[i-1] = rsmd.getColumnName(i);
+            columnNames[i-1] = rsmd.getColumnLabel(i);
         }
 
         // Throw away all rows upto startRow
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.