Skip to content

Commit

Permalink
Fix compilation error for Scala 3
Browse files Browse the repository at this point in the history
  • Loading branch information
lorandszakacs committed Aug 4, 2021
1 parent aa49257 commit 3f3dd8b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ object PSQLExceptionInterpreters {
def foreignKey[F[_]: MonadThrow](e: PSQLException): F[DBForeignKeyConstraintViolationAnomaly] = {
val msg = e.getServerErrorMessage
for {
table <- Option(msg.getTable).liftTo[F](e)
constraint <- Option(msg.getConstraint).liftTo[F](e)
(column, value, fTable) <- PSQLErrorParsers.foreignKey[F](msg.getDetail)
table <- Option(msg.getTable).liftTo[F](e)
constraint <- Option(msg.getConstraint).liftTo[F](e)
t <- PSQLErrorParsers.foreignKey[F](msg.getDetail)
(column, value, fTable) = t
} yield DBForeignKeyConstraintViolationAnomaly(
table = table,
constraint = constraint,
Expand Down

0 comments on commit 3f3dd8b

Please sign in to comment.