jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43831] - Unexpected Result with mysql jdbc 5.1.5, column aliases not reported
Date Tue, 13 Nov 2007 20:38:57 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43831>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43831





------- Additional Comments From eq@ti.com  2007-11-13 12:38 -------
found mysql bug report that the useOldAliasMetadataBehavior default changes from
true to false from version 5.0 to 5.1.
http://bugs.mysql.com/bug.php?id=31406

---
/dev/jee/workspace/mysql-connector-java-5.0.8/src/com/mysql/jdbc/ConnectionProperties.j
ava     2007-11-13 13:36:49.473056600 -0600
+++
/dev/jee/workspace/mysql-connector-java-5.1.5/src/com/mysql/jdbc/ConnectionPropertiesIm
pl.java 2007-11-13 13:41:30.707431600 -0600
 
        private BooleanConnectionProperty useOldAliasMetadataBehavior = new
BooleanConnectionProperty(
-                       "useOldAliasMetadataBehavior",
-                       true,
-                       "Should the driver use the legacy behavior for \"AS\"
clauses on columns and tables, and only "
-                   + "return aliases (if any) for
ResultSetMetaData.getColumnName() or ResultSetMetaData.getTableName()
 "
-                   + "rather than the original column/table name?",
-                   "5.0.4",
+                       "useOldAliasMetadataBehavior", //$NON-NLS-1$
+                       false,
+                      
Messages.getString("ConnectionProperties.useOldAliasMetadataBehavior"),
//$NON-NLS-1$
+                   "5.0.4", //$NON-NLS-1$
                    MISC_CATEGORY,
                    Integer.MIN_VALUE);
 

I would still suggest changing the accessor from getColumnName to getColumnLabel
since this would reflect the intent of the developer.





-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


Mime
View raw message