We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8b5d8c commit 6a702e5Copy full SHA for 6a702e5
core/src/main/scala/scalikejdbc/async/AsyncDB.scala
@@ -60,9 +60,11 @@ object AsyncDB {
60
61
connection.inTransaction(_ => op.apply(tx)).onComplete {
62
case Success(result) =>
63
+ tx.commit()
64
tx.release()
65
p.success(result)
66
case Failure(e) =>
67
+ tx.rollback()
68
// As documentation recommends - close connection after rollback
69
connection.disconnect
70
0 commit comments