Skip to content

Commit 5c718cd

Browse files
committed
[publish] 6.0.12 (fix saveChanges())
1 parent 08d7f05 commit 5c718cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/module-database-core/src/main/kotlin/taboolib/module/database/ExecutableSource.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ open class ExecutableSource(val table: Table<*, *>, var dataSource: DataSource,
104104
*/
105105
open fun saveChanges(): Result<Unit> {
106106
// 使用 autoCommit 的同时也可以判断是否成功取到了连接
107-
return if (connection.autoCommit) {
107+
return if (!connection.autoCommit) {
108108
try {
109109
// 执行所有的处理器
110110
processors.forEach { it.run() }

0 commit comments

Comments
 (0)