Skip to content

Commit

Permalink
JdbcModelBuilder handles normal BigDecimal defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
G. Richard Bellamy committed Sep 11, 2016
1 parent f205442 commit 34de035
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions slick/src/main/scala/slick/jdbc/PostgresProfile.scala
Expand Up @@ -106,8 +106,7 @@ trait PostgresProfile extends JdbcProfile {
case (NumericPattern(v),"Long") => Some(Some(v.toLong))
case (NumericPattern(v),"Float") => Some(Some(v.toFloat))
case (NumericPattern(v),"Double") => Some(Some(v.toDouble))
case (NumericPattern(v), "scala.math.BigDecimal") => Some(Some(v))
case (v, "scala.math.BigDecimal") => Some(Some(v))
case (NumericPattern(v), "scala.math.BigDecimal") => Some(Some(BigDecimal(s"$v")))
case (UUIDPattern(v),"java.util.UUID") => Some(Some(java.util.UUID.fromString(v)))
case (_,"java.util.UUID") => None // The UUID is generated through a function - treat it as if there was no default.
}.getOrElse{
Expand Down

0 comments on commit 34de035

Please sign in to comment.