Comments - ResultSetMetaData getColumnClassName accuracy for JDBC
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.
I'm not sure that your use case is aligned with JDBC understanding of what this method should return. There is a test case that checks, among other things that
resutSet.getObject(index).getClass().getName() is the same as resultSetMetaData.getColumnClassName(index)
See here https://github.com/MariaDB/mariadb-connector-j/blob/master/src/test/java/org/mariadb/jdbc/DatatypeTest.java
That in my understanding, was what JDBC required. Why would you need to instantiate Objects with newInstance at all, what are you trying to achieve
I'm testing one of my theories. I'll just make adaptation similar to the getClassName  and use getColumnType as that seems to be more reliable and the returned type seems to be one of the java.sql.Types.