Hello. If i write a query with the following pattern using the MySQL
dialect i get an unexpected result with JOOQ 3.2.0 and 3.1.0 (did not test
older versions).
TABLE_A A = TABLE_A.as("A");
TABLE_B B = TABLE_B.as("B");
context.select(A.ID).from(A)
.join(
select(B.ID).from(B).where(B.NAME.contains(text))
).on(B.ID.eq(A.ID)).fetch();
What i get is the following:
select `A`.`ID` from `TABLE_A` as `A`
join (
select `B`.`ID` from `TABLE_B` as `B` where `B`.`NAME` like concat('%',
?, '%') escape '!'
) as `alias_1234567` on `B`.`ID` = `A`.`ID`;
Instead of the "unknown" alias `alias_1234567` i would expect `B`. Did i do
something wrong or is this a bug in JOOQ?
Greetings from Brian and Tobias
--
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/groups/opt_out.