> But this does point out the problem: LIKE (a/k/a ~~) on a bytea wants> a bytea on the righthand side, not text or varchar. So setString is> the wrong thing to use.
Perhaps something like:
setBytes(myString.getBytes())
?