JetBrains / Exposed

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

fix: EXPOSED-424 ClassCastException exception when using `fetchBatchedResults` with `alias` #2140

Closed joc-a closed 3 months ago

joc-a commented 3 months ago

Added an additional check to see if the table is an alias and use the alias' delegate in that case.

I wanted to change the same logic in UpdateBuilder, but I couldn't think of a usage of the set functions where this change would be necessary. Please let me know if you think of a case where it is.