Author: shawkins
Date: 2010-07-14 17:20:54 -0400 (Wed, 14 Jul 2010)
New Revision: 2347
Modified:
trunk/client/src/main/java/org/teiid/jdbc/StatementImpl.java
trunk/test-integration/common/src/test/java/org/teiid/jdbc/TestQueryPlans.java
Log:
TEIID-908 fixing the type metadata
Modified: trunk/client/src/main/java/org/teiid/jdbc/StatementImpl.java
===================================================================
--- trunk/client/src/main/java/org/teiid/jdbc/StatementImpl.java 2010-07-14 20:59:59 UTC
(rev 2346)
+++ trunk/client/src/main/java/org/teiid/jdbc/StatementImpl.java 2010-07-14 21:20:54 UTC
(rev 2347)
@@ -416,7 +416,7 @@
records.add(row);
}
createResultSet(records, new String[] {"PLAN_TEXT",
"PLAN_XML", "DEBUG_LOG"}, //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- new String[] {JDBCSQLTypeInfo.STRING, JDBCSQLTypeInfo.XML,
JDBCSQLTypeInfo.STRING});
+ new String[] {JDBCSQLTypeInfo.CLOB, JDBCSQLTypeInfo.XML,
JDBCSQLTypeInfo.CLOB});
return;
}
if (show.equalsIgnoreCase("ANNOTATIONS")) { //$NON-NLS-1$
Modified: trunk/test-integration/common/src/test/java/org/teiid/jdbc/TestQueryPlans.java
===================================================================
---
trunk/test-integration/common/src/test/java/org/teiid/jdbc/TestQueryPlans.java 2010-07-14
20:59:59 UTC (rev 2346)
+++
trunk/test-integration/common/src/test/java/org/teiid/jdbc/TestQueryPlans.java 2010-07-14
21:20:54 UTC (rev 2347)
@@ -28,6 +28,7 @@
import java.sql.ResultSet;
import java.sql.SQLXML;
import java.sql.Statement;
+import java.sql.Types;
import org.junit.AfterClass;
import org.junit.BeforeClass;
@@ -69,6 +70,7 @@
rs = s.executeQuery("show plan");
assertTrue(rs.next());
+ assertEquals(rs.getMetaData().getColumnType(1), Types.CLOB);
SQLXML plan = rs.getSQLXML(2);
assertTrue(plan.getString().startsWith("<?xml"));
assertNull(rs.getObject("DEBUG_LOG"));
Show replies by date