I ran into a bug in my code because I was using jOOQ wrong, but thought maybe it would be nice to fail on this situation.
I wanted to select a single column that was a long and instead of writing fetch(TABLE.FIELD), as I should, I wrote fetchInto(Long.class). And it worked. So I thought you could just put a primative type for fetchInto(). Later I wanted to select a string column, so I wrote fetchInto(String.class) which does not work. It will just return a blank string for every entry. So digging a bit into this I found out that fetchInto(primitive type) is not supported but Long just happens to work because it has a Long(long) constructor that by coincidences is the first constructor returned. So it might be nice in jOOQ that if somebody passes a primitive type it fails or actually handles it. Darren -- 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.
