Author: mdrillin
Date: 2011-06-17 18:13:44 -0400 (Fri, 17 Jun 2011)
New Revision: 3254
Modified:
branches/7.4.x/runtime/src/main/java/org/teiid/odbc/ODBCServerRemoteImpl.java
Log:
TEIID-1631 : ODBC SQLDescribeCol was not working when used with Prepare Statement
Modified: branches/7.4.x/runtime/src/main/java/org/teiid/odbc/ODBCServerRemoteImpl.java
===================================================================
---
branches/7.4.x/runtime/src/main/java/org/teiid/odbc/ODBCServerRemoteImpl.java 2011-06-17
22:10:42 UTC (rev 3253)
+++
branches/7.4.x/runtime/src/main/java/org/teiid/odbc/ODBCServerRemoteImpl.java 2011-06-17
22:13:44 UTC (rev 3254)
@@ -477,7 +477,12 @@
}
else {
try {
+ // The response is a ParameterDescription message describing the parameters needed by
the statement,
this.client.sendParameterDescription(query.stmt.getParameterMetaData(),
query.paramType);
+
+ // followed by a RowDescription message describing the rows that will be returned
when the statement
+ // is eventually executed (or a NoData message if the statement will not return
rows).
+ this.client.sendResultSetDescription(query.stmt.getMetaData(), query.stmt);
} catch (SQLException e) {
errorOccurred(e);
}