JetBrains / Exposed

Kotlin SQL Framework
http://jetbrains.github.io/Exposed/
Apache License 2.0
8.28k stars 690 forks source link

fix: EXPOSED-371 Fix incorrect table reference passed to EntityID instance when using value-based utility functions #2074

Closed dzikoysk closed 5 months ago

dzikoysk commented 5 months ago

Fix https://youtrack.jetbrains.com/issue/EXPOSED-371/Unsafe-cast-of-columns-table-to-IdTable-when-using-EntityID-value

dzikoysk commented 5 months ago

Thanks guys :) Looking forward for the next release!

mnonnenmacher commented 4 months ago

@bog-walk Could you make a release with this fix? The workaround you described at https://github.com/JetBrains/Exposed/issues/1533#issuecomment-2095075359 is inconvenient when you have a lot of tables which don't inherit from IdTable.

bog-walk commented 4 months ago

@mnonnenmacher @dzikoysk Version 0.50.1 has been released with this fix.