Exception in thread "main" org.jooq.exception.DataAccessException: SQL [select "x" from "core"."example"]; Schema 'core' does not exist
at org.jooq_3.12.1.DERBY.debug(Unknown Source)
at org.jooq.impl.Tools.translate(Tools.java:2717)
at org.jooq.impl.DefaultExecuteContext.sqlException(DefaultExecuteContext.java:755)
at org.jooq.impl.AbstractQuery.execute(AbstractQuery.java:383)
at org.jooq.impl.AbstractResultQuery.fetchLazy(AbstractResultQuery.java:501)
at org.jooq.impl.AbstractResultQuery.fetchLazy(AbstractResultQuery.java:470)
at org.jooq.impl.AbstractResultQuery.fetchStream(AbstractResultQuery.java:441)
at org.jooq.impl.SelectImpl.fetchStream(SelectImpl.java:2724)
at SchemaIssue.main(SchemaIssue.java:54)--
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 jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/abde1207-07ea-4686-b5b9-29594a4d8ac0%40googlegroups.com.
Perhaps the jooq user doesn’t have permission to see the core table(s)
withRenderNameStyle(RenderNameStyle.AS_IS)
--
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 jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/0e98b093-f88e-4829-8b94-8c3e1efd38ba%40googlegroups.com.
That's a feature not a bug! :) jOOQ by default quotes all identifiers. That's useful to support all the edge cases of case sensitive identifiers, or identifiers containing special characters by default (other ORMs have a lot of trouble with these). It also protects against SQL injection, if users forget to sanitise their inputs to DSL.name().The problem in your case is that you're creating your objects using JDBC directly, using Derby's default case (UPPER CASE), and then request data from quoted "lower case" identifiers. You have several ways to work around this: