Permalink
Browse files

Add two more expr customization for pg `current_date` and `current_time`

  • Loading branch information...
tminglei committed Aug 24, 2015
1 parent 6b92d09 commit 8dac76f2d150a4761bccd52c38d7a64d4921989a
Showing with 2 additions and 0 deletions.
  1. +2 −0 slick/src/main/scala/slick/driver/PostgresDriver.scala
@@ -140,6 +140,8 @@ trait PostgresDriver extends JdbcDriver { driver =>
case Library.IfNull(ch, d) => b"coalesce($ch, $d)"
case Library.NextValue(SequenceNode(name)) => b"nextval('$name')"
case Library.CurrentValue(SequenceNode(name)) => b"currval('$name')"
case Library.CurrentDate() => b"current_date"
case Library.CurrentTime() => b"current_time"
case _ => super.expr(n, skipParens)
}
}

0 comments on commit 8dac76f

Please sign in to comment.