I suspect that this issue has been answered in this other thread: https://groups.google.com/forum/#!topic/jooq-user/qPWiqCCbFYE
2014-06-16 19:17 GMT+02:00 <[email protected]>: > Hi all, > > I'm fairly new to jOOQ and perhaps I am doing something wrong, but > when I run a query and get back a result as a "Record" and try to extract > the values with something like: > > rec.getValue("name"); > rec.getValue("code"); > rec.getValue("link"); > > I find that that values are mixed up... For a query like: > > Record rec = create.select(CUSTOMER.NAME.as("name"), CUSTOMER.CODE.as > ("code"), > concat(val("/v3/customer/"), CUSTOMER.CODE, val("/vdc")).as("link") > ).where(CUSTOMER.CODE.eq(code)).fetchOne(); > > When I try to access the fields by name or number, the 0th field is null, > the 1st field is what the 0th field should have been, the 2nd field is what > the 1st field should have been, and attempting to grab the 3rd field > indicates an invalid request. When I run a unit test in a debugger, I see > similar things. Can anyone suggest where I may be going wrong? > > Thanks in advance!! > > Deven > > -- > 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/d/optout. > -- 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/d/optout.
