I am using H2 in-memory DB. I have a DB column that stores data as a CLOB data type. I know how to store a CLOB and read it from DB.
The issue is I am looking to have a wildcard search using the LIKE clause in SQL query.
My column name is 'PAYLOAD'
JDBC query I tried,
SELECT * FROM TABLE WHERE PAYLOAD LIKE '%SOME-STRING%';
SELECT * FROM TABLE WHERE TO_CHAR(PAYLOAD) LIKE '%SOME-STRING%';
These queries run fine with oracle but don't return anything when spring JDBC connects to H2 DB and also no exception etc. I tried with other varchar columns and that gives me results with like clause(sanity check). What configuration do I need to have here?