Generated code:
override fun getCatalog(): Catalog? = getSchema()?.getCatalog()
Generated code:
override fun getCatalog(): Catalog? = getSchema() == null ? null : getSchema().getCatalog()
Add an enum in a PostgreSQL database and generate Kotlin source code.
Thanks a lot for your report. Our integration tests only covered enums without schema (H2, MySQL), which is why this was undetected. Will fix ASAP for jOOQ 3.15.0 and 3.14.2 (#10765).
Right... when following the code, it's apparent that it's not nullable so it should just use getSchema().getCatalog() right away.
This slipped by 3.14.1 - sorry for the inconvenience. Will fix this now
Right... when following the code, it's apparent that it's not nullable so it should just use
getSchema().getCatalog()right away.
Agreed
Fixed for jOOQ 3.15.0 and 3.14.2 (#10765).
Fixed for jOOQ 3.15.0 and 3.14.2 (#10765).
Cool! When do you expect 3.14.2 will be released?
Fixed for jOOQ 3.15.0 and 3.14.2 (#10765).
Cool! When do you expect 3.14.2 will be released?
Yes
Most helpful comment
Thanks a lot for your report. Our integration tests only covered enums without schema (H2, MySQL), which is why this was undetected. Will fix ASAP for jOOQ 3.15.0 and 3.14.2 (#10765).