Skip to content

Commit

Permalink
Merge pull request #14 from kxbmap/implicit-ec-param
Browse files Browse the repository at this point in the history
Added implicit EC parameter to TxAsyncDBSession#begin/rollback/commit
  • Loading branch information
seratch committed Jan 8, 2014
2 parents e7e011a + 2f8af4a commit dff2c59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/main/scala/scalikejdbc/async/AsyncDBSession.scala
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,11 @@ case class TxAsyncDBSession(connection: NonSharedAsyncConnection) extends AsyncD

def isActive: Boolean = connection.isActive

def begin(): Future[AsyncQueryResult] = connection.sendQuery("BEGIN")
def begin()(implicit ctx: EC = ECGlobal): Future[AsyncQueryResult] = connection.sendQuery("BEGIN")

def rollback(): Future[AsyncQueryResult] = connection.sendQuery("ROLLBACK")
def rollback()(implicit ctx: EC = ECGlobal): Future[AsyncQueryResult] = connection.sendQuery("ROLLBACK")

def commit(): Future[AsyncQueryResult] = connection.sendQuery("COMMIT")
def commit()(implicit ctx: EC = ECGlobal): Future[AsyncQueryResult] = connection.sendQuery("COMMIT")

def release(): Unit = connection.release()

Expand Down

0 comments on commit dff2c59

Please sign in to comment.