I can confirm that the first method (using Clob#getSubString) does NOT
work for MySQL, since the Hibernate ClobImpl class does not allow
extraction of data using getSubString, which is exactly the method
MySQL uses to get to the character data (which actually causes the 2nd
method to bomb as well, since the stream methods are not used by the
MySQL JDBC driver (v 3.0.14) in this case). |