You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Discovered when writing tests for #15942, when using KeepNamesGeneratorStrategy with the KotlinGenerator and with implicit join paths, then there's a compilation error for a schema like this:
overridefungetReferences(): List<ForeignKey<org.jooq.codegen.test.keepnamesgeneratorstrategy.db.tables.records.lower_case, *>> =listOf(FK_LOWER_CASE)
// Error here --------------------------------------------------------------------------------------------------------------------------- ^^^^^^^^^^^^^privatelateinitvar_FK_LOWER_CASE:PARENT_PATH/** * Get the implicit join path to the <code>PUBLIC.PARENT</code> table.*/internalfunFK_LOWER_CASE(): PARENT_PATH {
if (!this::_FK_LOWER_CASE.isInitialized)
_FK_LOWER_CASE=PARENT_PATH(this, FK_LOWER_CASE, null)
// Error here -------------------- ^^^^^^^^^^^^^return_FK_LOWER_CASE;
}
internalvalFK_LOWER_CASE:PARENT_PATH
get():PARENT_PATH=FK_LOWER_CASE()
And the compilation error is:
[ERROR] C:\Users\lukas\jOOQ\3.20\workspace\jOOQ-pro\jOOQ-test-codegen\jOOQ-test-codegen-kotlin\src\test\kotlin\org\jooq\codegen\test\keepnamesgeneratorstrategy\db\tables\lower_case.kt:[109,136] Type mismatch: inferred type is PARENT.PARENT_PATH but ForeignKey<lower_case, *> was expected
[ERROR] C:\Users\lukas\jOOQ\3.20\workspace\jOOQ-pro\jOOQ-test-codegen\jOOQ-test-codegen-kotlin\src\test\kotlin\org\jooq\codegen\test\keepnamesgeneratorstrategy\db\tables\lower_case.kt:[109,136] Type mismatch: inferred type is List<PARENT.PARENT_PATH> but List<ForeignKey<lower_case, *>> was expected
[ERROR] C:\Users\lukas\jOOQ\3.20\workspace\jOOQ-pro\jOOQ-test-codegen\jOOQ-test-codegen-kotlin\src\test\kotlin\org\jooq\codegen\test\keepnamesgeneratorstrategy\db\tables\lower_case.kt:[118,48] Type mismatch: inferred type is PARENT.PARENT_PATH but ForeignKey<out Record, PARENT>? was expected
The text was updated successfully, but these errors were encountered:
Discovered when writing tests for #15942, when using
KeepNamesGeneratorStrategy
with theKotlinGenerator
and with implicit join paths, then there's a compilation error for a schema like this:Problematic code includes:
And the compilation error is:
The text was updated successfully, but these errors were encountered: