I want to save unicode string to a clob column in database. The code is shown below and I get function not supported error. Is there a workaround for this problem? How do you set unicode string for a clob?
com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC 14.10.00.26] [Error 165] [SQLState HY000] setCharacterStream: function not supported in this version
The PreparedStatement setCharacterStream method with 2 arguments is not supported yet by the Teradata JDBC Driver.
Instead, you need to use the PreparedStatement setCharacterStream method with 3 arguments, which is supported. Please note that the Teradata JDBC Driver User Guide is available here on Developer Exchange, and it lists all the methods supported by the Teradata JDBC Driver.