If the preparedStatement sql is fixed, how can I do the insert?
table schema
create table if not exists ttqs_a (b bit(1));
code
try(PreparedStatement ps = conn.prepareStatement("insert into ttqs_a values(?)")){
ps.setObject(1,1, Types.BIT);
ps.execute();
}
exception
Exception in thread "main" org.postgresql.util.PSQLException: ERROR: column "b" is of type bit but expression is of type boolean