How to migrate usages of set(column: Column<*>, value: Any?) to set(column: Column<C>, value: C?) in 3.3? #237
Answered
by
vincentlauvlwj
efenderbosch
asked this question in
Q&A
-
Prior to 3.2 we were doing this: it.columns(reified).forEach { (column, value) ->
it[column.name] to value
} That was deprecated in 3.2, so now we do this: it.columns(reified).forEach { (column, value) ->
set(column, value)
} However, |
Beta Was this translation helpful? Give feedback.
Answered by
vincentlauvlwj
Jan 19, 2021
Replies: 1 comment
-
You can cast it.columns(reified).forEach { (column, value) ->
set(column as Column<Any>, value)
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vincentlauvlwj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can cast
column
asColumn<Any>
: