Comments - ResultSetMetaData getColumnClassName accuracy for JDBC

9 years, 1 month ago Tommy Pham

For the BLOB MariaDB datatype, I was expecting the getColumnClassName to be "java.sql.Blob".

 
9 years, 1 month ago Tommy Pham

or javax.sql.rowset.serial.SerialBlob since java.sql.Blob is just an interface.

 
9 years, 1 month ago Vladislav Vaintroub

Well, the getObject() method for blob fields returns byte array, not javax.sql.rowset.serial.SerialBlob , thus the method returns "[B"

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.