docs: public void setObjectForStatement(PreparedStatement ps, int index, Object value, int jdbcType) throws SQLException
      {
          if (((jdbcType == Types.CHAR) || (jdbcType == Types.VARCHAR)) &&
              (value instanceof Character))
          {
              // [tomdz]
              // Currently, Derby doesn't like Character objects in the PreparedStatement
              // when using PreparedStatement#setObject(index, value, jdbcType) method
              // (see issue DERBY-773)
              // So we make a String object out of the Character object and use that instead
              super.setObjectForStatement(ps, index, value.toString(), jdbcType);
          }
          else
          {
              super.setObjectForStatement(ps, index, value, jdbcType);
          }
      }