Skip to content

Commit

Permalink
[publish] 6.0.12 (fix saveChanges())
Browse files Browse the repository at this point in the history
  • Loading branch information
Bkm016 committed Sep 26, 2023
1 parent 08d7f05 commit 5c718cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ open class ExecutableSource(val table: Table<*, *>, var dataSource: DataSource,
*/
open fun saveChanges(): Result<Unit> {
// 使用 autoCommit 的同时也可以判断是否成功取到了连接
return if (connection.autoCommit) {
return if (!connection.autoCommit) {
try {
// 执行所有的处理器
processors.forEach { it.run() }
Expand Down

0 comments on commit 5c718cd

Please sign in to comment.