Skip to content

Commit

Permalink
minor code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
tminglei committed Feb 27, 2016
1 parent 8511fa5 commit 43b8329
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ trait ExPostgresDriver extends JdbcDriver with PostgresDriver with Logging { dri
def apply(pr: PositionedResult) = pr.nextBytes()
}
implicit val getByteArrayOption = new GetResult[Option[Array[Byte]]] {
def apply(pr: PositionedResult) = Option(pr.nextBytes())
def apply(pr: PositionedResult) = pr.nextBytesOption()
}
implicit val setByteArray = new SetParameter[Array[Byte]] {
def apply(v: Array[Byte], pp: PositionedParameters) = pp.setBytes(v)
Expand Down

0 comments on commit 43b8329

Please sign in to comment.