-
Notifications
You must be signed in to change notification settings - Fork 690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table.batchInsert constrained by Any #847
Comments
Could you clarify your expectations? You expect |
OK, so the Any constraint is to guard against null cases. Totally missed that one :D Thanks for clarification. |
Technically speaking. If you are able to provide meaningful insert statement for null value, handling the null case should be allowed. In same manner as here is no not-null constraint for plain insert. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in org.jetbrains.exposed.sql Queries.kt there is
fun <T:Table, E:Any> T.batchInsert(data: Iterable<E>, ignore: Boolean = false, body: BatchInsertStatement.(E)->Unit): List<ResultRow>
. Is there any reason whyE
is bound toAny
? It doesn't seem to serve any purpose.The text was updated successfully, but these errors were encountered: