[teiid-commits] teiid SVN: r3300 - trunk/documentation/client-developers-guide/src/main/docbook/en-US/content.
teiid-commits at lists.jboss.org
teiid-commits at lists.jboss.org
Fri Jul 1 16:26:47 EDT 2011
Author: van.halbert
Date: 2011-07-01 16:26:47 -0400 (Fri, 01 Jul 2011)
New Revision: 3300
Modified:
trunk/documentation/client-developers-guide/src/main/docbook/en-US/content/jdbc-connection.xml
trunk/documentation/client-developers-guide/src/main/docbook/en-US/content/jdbc-extensions.xml
Log:
TEIID-1651 Added backward compatibility support so that pre JDBC 4, the use of an 'Alias' can still be obtained via the ResultSetMetadata.getColumnName. In JDBC 4, you will need to call ResultSetMetadata.getColumnLabel. To enable backward support, add the property: useJDBC4ColumnNameAndLabelSemantics=false to the url connection string
Modified: trunk/documentation/client-developers-guide/src/main/docbook/en-US/content/jdbc-connection.xml
===================================================================
--- trunk/documentation/client-developers-guide/src/main/docbook/en-US/content/jdbc-connection.xml 2011-07-01 19:34:14 UTC (rev 3299)
+++ trunk/documentation/client-developers-guide/src/main/docbook/en-US/content/jdbc-connection.xml 2011-07-01 20:26:47 UTC (rev 3300)
@@ -242,6 +242,21 @@
</entry>
<entry>Default query timeout in seconds. Must be >= 0. 0 indicates no timeout. Can be overriden by <code>Statement.setQueryTimeout</code>. Default 0.</entry>
</row>
+ <row>
+ <entry>
+ <code>useJDBC4ColumnNameAndLabelSemantics</code>
+ </entry>
+ <entry>
+ <code>boolean</code>
+ </entry>
+ <entry>
+ <para>A change was made in JDBC4 so that when an 'Alias' is used it will
+ now be returned as the label. Prior to this, it was returned as
+ the name. Setting this property to false will enable
+ backwards compatibility when JDBC3 and older support is still required.
+ </para>
+ </entry>
+ </row>
</tbody>
</tgroup>
</table>
Modified: trunk/documentation/client-developers-guide/src/main/docbook/en-US/content/jdbc-extensions.xml
===================================================================
--- trunk/documentation/client-developers-guide/src/main/docbook/en-US/content/jdbc-extensions.xml 2011-07-01 19:34:14 UTC (rev 3299)
+++ trunk/documentation/client-developers-guide/src/main/docbook/en-US/content/jdbc-extensions.xml 2011-07-01 20:26:47 UTC (rev 3300)
@@ -170,6 +170,18 @@
<para>Same as the connection property.</para>
</entry>
</row>
+ <row>
+ <entry>
+ <code>JDBC4COLUMNNAMEANDLABELSEMANTICS / useJDBC4ColumnNameAndLabelSemantics</code>
+ </entry>
+ <entry>
+ <para>A change was made in JDBC4 so that when an 'Alias' is used it will.
+ now be returned as the label. Prior to this, it was returned as
+ the name. Setting this property to false will enable
+ backwards compatibility when JDBC3 and older support is still required.
+ </para>
+ </entry>
+ </row>
</tbody>
</tgroup>
</table>
More information about the teiid-commits
mailing list