#19662·jOOQ

Wrong value returned from Record.get(TABLE.UDT.ATTRIBUTE) when there's a conflicting TABLE.ATTRIBUTE column

Author: lukasederCreated Feb 17, 2026Updated Sep 21, 2026
LabelsT: DefectC: FunctionalityP: MediumT: Incompatible changeE: All Editions

With this schema:

sql
create type u1 as (i int, j int);
create type u2 as (u u1);
create table t as (u u2, j int);

With the implementation of:

We can access UDT paths from records:

java
// Returns actual UDT path value
ctx.select().from(T).fetch(r -> r.get(T.U.U.I));

But there's a conflict when there are ambiguities between fully qualified UDT paths (T.U.U.J) and columns of the same name as the path attribute (T.J)

java
// Returns T.J, as this is what has been done, historically
ctx.select().from(T).fetch(r -> r.get(T.U.U.J));