We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Based on this example I'm trying to get a BatchUpdateStatement to work:
Database.connect("jdbc:h2:tcp://localhost/~/h2/test", "org.h2.Driver", "sa") ... transaction { addLogger(StdOutSqlLogger) BatchUpdateStatement(Areas).apply { listOf(1, 2).forEach { addBatch(EntityID(it, Areas)) this[Areas.networkType] = it.toString() } }.execute(this) } ... object Areas : IntIdTable() { val latitude = double("latitude") val longitude = double("longitude") val accuracy = float("accuracy") val performance = double("performance") val networkType = text("networkType") }
However, on the second iteration of the loop IllegalStateException is thrown:
Exception in thread "main" java.lang.IllegalStateException: Areas.networkType is already initialized
Am I doing something wrong here?
The text was updated successfully, but these errors were encountered:
#386 BatchUpdateStatement results in IllegalStateException: Table.col…
f85ead9
…umnName is already initialized
Tapac
No branches or pull requests
Based on this example I'm trying to get a BatchUpdateStatement to work:
However, on the second iteration of the loop IllegalStateException is thrown:
Exception in thread "main" java.lang.IllegalStateException: Areas.networkType is already initialized
Am I doing something wrong here?
The text was updated successfully, but these errors were encountered: