Hi,
I am submitting patch for
Derby-21
--------
ResultsetMetaData.getColumnClassName() for CLOB and BLOB
datatypes is incorrect.
As attached.
Kindly consider the fix.
thanks,
Amit Handa,
Sun Microsystems Inc.
Index: java/engine/org/apache/derby/iapi/types/TypeId.java
===================================================================
--- java/engine/org/apache/derby/iapi/types/TypeId.java (revision 106156)
+++ java/engine/org/apache/derby/iapi/types/TypeId.java (working copy)
@@ -1290,11 +1290,11 @@
*/
public String getResultSetMetaDataTypeName()
{
- if (BLOB_ID == this)
+ if (BLOB_ID.equals(this))
return "java.sql.Blob";
- if (CLOB_ID == this)
+ if (CLOB_ID.equals(this))
return "java.sql.Clob";
- if (NCLOB_ID == this)
+ if (NCLOB_ID.equals(this))
return "java.sql.Clob";
return getCorrespondingJavaTypeName();
}