I want to insert into database table data using following jooq based code to generate query:
Factory jf = getJooqFactory(); int surveyId = jf.nextval(SURVEY_ID_SEQ).intValue(); jf.insertInto(SURVEY) .set(SURVEY.ID, surveyId) .set(SURVEY.NAME, survey.getName()) .set(SURVEY.IDML, Factory.val(idml, SQLDataType.CLOB)) .execute(); The problem is that when I print the query using this code
System.out.println(jf.insertInto(SURVEY) .set(SURVEY.ID, null) .set(SURVEY.NAME, null) .set(SURVEY.IDML, null) .getSQL()); what I get is query with question marks instead of values.
insert into "collect"."survey" ("id", "name", "idml") values (?, ?, ?) When I print values of variables separately they are all correct. Even if I insert String values manually in .set() getSQL() return question marks.