title: Jooq Java CTE wrong render
body: <p>I have CTE that is been creating from DSL.values:</p>
  <pre><code>final RowN[] rowNS = tasksId
                  .stream()
                  .map(x -&gt; DSL.row(x.toString()))
                  .toArray(RowN[]::new);
  
          CommonTableExpression&lt;Record1&lt;String&gt;&gt; cte = DSL
                  .name(&quot;cte&quot;)
                  .fields(&quot;id&quot;)
                  .as(DSL
                          .select(
                                  DSL.field(&quot;id&quot;, String.class)
                          )
                          .from(
                                  DSL.values(rowNS).as(&quot;temp&quot;, &quot;id&quot;)
                          )
                  );
  </code></pre>
  <p>Then i am trying use it to get needed values from DB</p>
  <pre><code>                dslContext
                          .with(
                                  cte
                          )
                          .select(
                                  DSL.field(TaskStateTable.taskId.getColumnName(), String.class),
                                  DSL.field(TaskStateTable.state.getColumnName(), String.class)
                          )
                          .from(
                                  DSL.table(tableNameProperties.getFullNameTableTaskState())
                          )
                          .join(
                                  cte
                          )
                          .on(
                                  DSL.field(tableNameProperties.getFullNameTableTaskState() + &quot;.&quot; + TaskStateTable.taskId.getColumnName())
                                          .eq(cte.field(&quot;id&quot;))
                          )
                          .fetchMap(
                                  DSL.field(TaskStateTable.taskId.getColumnName(), String.class),
                                  DSL.field(TaskStateTable.state.getColumnName(), String.class)
                          )
  </code></pre>
  <p>But i have only the next error</p>
  <pre><code>jOOQ; uncategorized SQLException for SQL [with cte(id) as (select id from ((select null id where 1 = 0) union all (select * from (values(cast(? as varchar))) temp)) temp) select task_id, state from rtm.task_state join cte on rtm.task_state.task_id = cte.id]
  </code></pre>
  <p><strong>I suppose it happens because of (select * from (values(cast(? as varchar))</strong></p>
  <p>How to fix it?
  Other methods without cte work fine.</p>