Hi Garret, Thanks for pointing this out. You're right, there are some missing convenience methods to be consistent with other API. I have registered #3185 for this. https://github.com/jOOQ/jOOQ/issues/3185
Best Regards, Lukas 2014-04-14 16:45 GMT+02:00 Garret Wilson <[email protected]>: > I'm very new to jOOQ and very rusty at SQL, so forgive me if I'm missing > something obvious. > > If I do a query returning a single record, I can easily get the single > value from the row like this: > > select(...).from(...).where(...).fetchOne(0, Integer.class); > > But when I'm doing an insert using returning(), I don't have all those > fancy featching options: > > insertInto(...).values(...).returning(...).fetchOne(0, IntegerClass); > > Instead I have to do: > > insertInto(...).values(...).returning(...).fetchOne().getValue(0, > IntegerClass); > > I guess when the convenience methods were added someone forgot to add them > to InsertReturningStep. > > -- > 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.
