Skip to content

Commit

Permalink
Fix for Mysql rewriteBatchedStatements parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Tapac committed Sep 7, 2018
1 parent b866537 commit 14eaa5a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ open class InsertStatement<Key:Any>(val table: Table, val isIgnore: Boolean = fa
}

protected open fun PreparedStatement.execInsertFunction() : Pair<Int, ResultSet?> {
val inserted = if (arguments().count() > 1 || isAlwaysBatch) executeBatch().sum() else executeUpdate()
val inserted = if (arguments().count() > 1 || isAlwaysBatch) executeBatch().count() else executeUpdate()
val rs = if (autoIncColumns.isNotEmpty()) { generatedKeys } else null
return inserted to rs
}
Expand Down

0 comments on commit 14eaa5a

Please sign in to comment.