title: jOOQ - error with alias and quotes
body: <p>I have this query:</p>
  
  <pre><code>Field&lt;String&gt; yearMonth = DSL.field("FORMATDATETIME({0}, 'yyyy-MM')",
                      String.class, LICENZE.CREATION_DATE).as("anno_mese");
  
  List&lt;Record3&lt;Integer, String, String&gt;&gt; records = 
      create.select(DSL.count().as("num_licenze"), LICENZE.EDIZIONE, yearMonth).
      from(LICENZE).
      groupBy(LICENZE.EDIZIONE, yearMonth).
      orderBy(yearMonth).
      fetch();
  </code></pre>
  
  <p>this query generates:</p>
  
  <pre><code>select 
    count(*) "num_licenze", 
    "PUBLIC"."LICENZE"."EDIZIONE", 
    FORMATDATETIME("PUBLIC"."LICENZE"."CREATION_DATE", 'yyyy-MM') "anno_mese"
  from "PUBLIC"."LICENZE"
  group by 
    "PUBLIC"."LICENZE"."EDIZIONE", 
    "anno_mese"
  order by "anno_mese" asc
  </code></pre>
  
  <p>executing it i get: <code>Column "anno_mese" not found; SQL statement</code></p>
  
  <p>Testing the generated query and removing the quotes from <code>anno_mese</code> in every parts of the query make the query works instead.</p>
  
  <p>Is my query wrong or am I using jooq in the wrong way?</p>
  
  <p>The alias in this query is not so important, I can run the query without using it too but just to understand how it works.
  I am using h2 as database.</p>
  
  <p>Thanks for the help</p>