[teiid-commits] teiid SVN: r3302 - branches/7.4.x/documentation/client-developers-guide/src/main/docbook/en-US/content.
teiid-commits at lists.jboss.org
teiid-commits at lists.jboss.org
Tue Jul 5 09:43:40 EDT 2011
Author: van.halbert
Date: 2011-07-05 09:43:39 -0400 (Tue, 05 Jul 2011)
New Revision: 3302
Modified:
branches/7.4.x/documentation/client-developers-guide/src/main/docbook/en-US/content/jdbc-connection.xml
branches/7.4.x/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: branches/7.4.x/documentation/client-developers-guide/src/main/docbook/en-US/content/jdbc-connection.xml
===================================================================
--- branches/7.4.x/documentation/client-developers-guide/src/main/docbook/en-US/content/jdbc-connection.xml 2011-07-04 19:09:19 UTC (rev 3301)
+++ branches/7.4.x/documentation/client-developers-guide/src/main/docbook/en-US/content/jdbc-connection.xml 2011-07-05 13:43:39 UTC (rev 3302)
@@ -242,6 +242,22 @@
</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: branches/7.4.x/documentation/client-developers-guide/src/main/docbook/en-US/content/jdbc-extensions.xml
===================================================================
--- branches/7.4.x/documentation/client-developers-guide/src/main/docbook/en-US/content/jdbc-extensions.xml 2011-07-04 19:09:19 UTC (rev 3301)
+++ branches/7.4.x/documentation/client-developers-guide/src/main/docbook/en-US/content/jdbc-extensions.xml 2011-07-05 13:43:39 UTC (rev 3302)
@@ -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