Hi, guys. We're starting a new project, and are using JOOQ. But I'm having 
trouble. Is it me, or is this a bug?

--- wad

@Test
public void testJooqInPredicate()
{
List<String> responseIds = Arrays.asList("id1", "id2", "id3");
DSLContext sqlBuilder = DSL.using(SQLDialect.POSTGRES, new 
Settings().withStatementType(StatementType.STATIC_STATEMENT));
UpdateQuery uq = sqlBuilder.updateQuery(DSL.table("surveyresponse"));
uq.addValue(DSL.field("archived"), true);
uq.addConditions(DSL.field("responseid").in(responseIds));
String sql = uq.getSQL();
assertEquals("update surveyresponse set archived = true where responseid in 
('id1', 'id2', 'id3')", sql);
/*
Expected :update surveyresponse set archived = true where responseid in 
('id1', 'id2', 'id3')
Actual   :update surveyresponse set archived = true where responseid in 
('[id1, id2, id3]')
 */
}

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to