I'm currently playing around with jooq

System.out.println(dsl.selectFrom(Tables.REPORT).getSQL());
>
System.out.println(dsl.insertInto(Tables.REPORT,

                Tables.REPORT.REP_NAME).getSQL());

 



I thought the above was simple enough. The first statement runs fine. With 
the 2nd I get

Exception in thread "main" java.lang.NullPointerException
at org.jooq.impl.InsertQueryImpl.toSQLInsert(InsertQueryImpl.java:366)
at org.jooq.impl.InsertQueryImpl.toSQL(InsertQueryImpl.java:252)
at org.jooq.impl.DefaultRenderContext.visit0(DefaultRenderContext.java:600)
at org.jooq.impl.AbstractContext.visit(AbstractContext.java:129)
at org.jooq.impl.DefaultRenderContext.visit(DefaultRenderContext.java:197)
at org.jooq.impl.DefaultRenderContext.render(DefaultRenderContext.java:345)
at org.jooq.impl.DefaultDSLContext.render(DefaultDSLContext.java:293)
at org.jooq.impl.AbstractQuery.getSQL(AbstractQuery.java:429)
at org.jooq.impl.AbstractQuery.getSQL(AbstractQuery.java:419)
at 
org.jooq.impl.AbstractDelegatingQuery.getSQL(AbstractDelegatingQuery.java:114)

I tried the same with a different table in the same database and didn't a 
null pointer exception. Is there something I missed or some corner case 
I've hit?

-- 
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.

Reply via email to