|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Submitted this patch. Thanks, Amit. Satheesh Sending java\engine\org\apache\derby\iapi\types\TypeId.java Transmitting file data . Committed revision 106336. Amit Handa wrote: >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(); > } -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBo8cLENVNIY6DZ7ERArd1AKCtu9Liri7RYc8ns8PwN4pmxCxsNACeKqEF 16Iqu1rN2BI3Q+3JY2b56YA= =XwIy -----END PGP SIGNATURE----- |
