Hi,
If I do this:
concat(ATHLETE.club().ABBREVIATION, field(" "), ATHLETE.club().NAME)
I get
(("alias_128651403"."abbreviation" || cast( as varchar)) || "alias_128651403"."name")
Which results in
org.springframework.jdbc.BadSqlGrammarException: jOOQ; bad SQL grammar [select "public"."athlete"."id", "public"."athlete"."first_name", "public"."athlete"."last_name", (("alias_128651403"."abbreviation" || cast( as varchar)) || "alias_128651403"."name") from ("public"."athlete" left outer join "public"."club" as "alias_128651403" on "public"."athlete"."club_id" = "alias_128651403"."id") order by "public"."athlete"."first_name", "public"."athlete"."last_name" offset ? rows fetch next ? rows only]
at org.jooq_3.19.13.POSTGRES.debug(Unknown Source) ~[na:na]
To make it work I have to use
concat(ATHLETE.club().ABBREVIATION, field("' '"), ATHLETE.club().NAME)
Why?
Thanks, Simon