I found the git IGNITE-3394 entry on the web.    However, the "type" looks to
be a Java class and doesn't really give me anything to go on for a CLOB vs a
VARCHAR2.  However, I did create a Transformer and plugged it in (or so I
thought) to try and see what came through for each field during a debugging
session.  However, my Transformer is never being called.

This is what I have.


*--------------------------------
new JdbcTypesTransformer
--------------------------------*
public class JdbcTypesClobTransformer extends JdbcTypesDefaultTransformer {

    public static final JdbcTypesClobTransformer INSTANCE = new
JdbcTypesClobTransformer();

    private JdbcTypesClobTransformer() { }

    @Override
    public Object getColumnValue(ResultSet rs, int colIdx, Class<?> type)
throws SQLException {
        System.out.println("************** INSIDE
JdbcTypesClobTransformer");
        Object val = rs.getObject(colIdx);

        if (val == null)
            return null;

        // code to check for CLOB goes here
        
        return super.getColumnValue(rs, colIdx, type);
    }
}



*--------------------------------------------------------------
changes to HistoryResultsCacheConfig cache() method
--------------------------------------------------------------*
        // existing method call
        storeFactory.setTypes(jdbcTypes.toArray(new
JdbcType[jdbcTypes.size()]));

        // new method call
        storeFactory.setTransformer(JdbcTypesClobTransformer.INSTANCE);





--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Argument-Type-Mismatch-for-Oracle-CLOB-tp7748p7772.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to