Skip to content

Commit

Permalink
Apply fix of #281 to joda-time and threeten
Browse files Browse the repository at this point in the history
  • Loading branch information
tminglei committed May 22, 2016
1 parent 5833997 commit abc1577
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ trait PgDateSupportJoda extends date.PgDateExtensions with utils.PgCommonJdbcTyp

implicit val getZonedDateTime = mkGetResult(_.nextZonedDateTime())
implicit val getZonedDateTimeOption = mkGetResult(_.nextZonedDateTimeOption())
implicit val setZonedDateTime = mkSetParameter[DateTime]("timestamptz", _.toString(jodaTzDateTimeFormatter), sqlType = Types.TIMESTAMP_WITH_TIMEZONE)
implicit val setZonedDateTimeOption = mkOptionSetParameter[DateTime]("timestamptz", _.toString(jodaTzDateTimeFormatter), sqlType = Types.TIMESTAMP_WITH_TIMEZONE)
implicit val setZonedDateTime = mkSetParameter[DateTime]("timestamptz", _.toString(jodaTzDateTimeFormatter), sqlType = Types.TIMESTAMP /*Types.TIMESTAMP_WITH_TIMEZONE*/)
implicit val setZonedDateTimeOption = mkOptionSetParameter[DateTime]("timestamptz", _.toString(jodaTzDateTimeFormatter), sqlType = Types.TIMESTAMP /*Types.TIMESTAMP_WITH_TIMEZONE*/)

implicit val getPeriod = mkGetResult(_.nextPeriod())
implicit val getPeriodOption = mkGetResult(_.nextPeriodOption())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,18 +179,18 @@ trait PgDateSupport2bp extends date.PgDateExtensions with utils.PgCommonJdbcType

implicit val getOffsetTime = mkGetResult(_.nextOffsetTime())
implicit val getOffsetTimeOption = mkGetResult(_.nextOffsetTimeOption())
implicit val setOffsetTime = mkSetParameter[OffsetTime]("timetz", _.format(bpTzTimeFormatter), sqlType = Types.TIME_WITH_TIMEZONE)
implicit val setOffsetTimeOption = mkOptionSetParameter[OffsetTime]("timetz", _.format(bpTzTimeFormatter), sqlType = Types.TIME_WITH_TIMEZONE)
implicit val setOffsetTime = mkSetParameter[OffsetTime]("timetz", _.format(bpTzTimeFormatter), sqlType = Types.TIME /*Types.TIME_WITH_TIMEZONE*/)
implicit val setOffsetTimeOption = mkOptionSetParameter[OffsetTime]("timetz", _.format(bpTzTimeFormatter), sqlType = Types.TIME /*Types.TIME_WITH_TIMEZONE*/)

implicit val getOffsetDateTime = mkGetResult(_.nextOffsetDateTime())
implicit val getOffsetDateTimeOption = mkGetResult(_.nextOffsetDateTimeOption())
implicit val setOffsetDateTime = mkSetParameter[OffsetDateTime]("timestamptz", _.format(bpTzDateTimeFormatter), sqlType = Types.TIMESTAMP_WITH_TIMEZONE)
implicit val setOffsetDateTimeOption = mkOptionSetParameter[OffsetDateTime]("timestamptz", _.format(bpTzDateTimeFormatter), sqlType = Types.TIMESTAMP_WITH_TIMEZONE)
implicit val setOffsetDateTime = mkSetParameter[OffsetDateTime]("timestamptz", _.format(bpTzDateTimeFormatter), sqlType = Types.TIMESTAMP /*Types.TIMESTAMP_WITH_TIMEZONE*/)
implicit val setOffsetDateTimeOption = mkOptionSetParameter[OffsetDateTime]("timestamptz", _.format(bpTzDateTimeFormatter), sqlType = Types.TIMESTAMP /*Types.TIMESTAMP_WITH_TIMEZONE*/)

implicit val getZonedDateTime = mkGetResult(_.nextZonedDateTime())
implicit val getZonedDateTimeOption = mkGetResult(_.nextZonedDateTimeOption())
implicit val setZonedDateTime = mkSetParameter[ZonedDateTime]("timestamptz", _.format(bpTzDateTimeFormatter), sqlType = Types.TIMESTAMP_WITH_TIMEZONE)
implicit val setZonedDateTimeOption = mkOptionSetParameter[ZonedDateTime]("timestamptz", _.format(bpTzDateTimeFormatter), sqlType = Types.TIMESTAMP_WITH_TIMEZONE)
implicit val setZonedDateTime = mkSetParameter[ZonedDateTime]("timestamptz", _.format(bpTzDateTimeFormatter), sqlType = Types.TIMESTAMP /*Types.TIMESTAMP_WITH_TIMEZONE*/)
implicit val setZonedDateTimeOption = mkOptionSetParameter[ZonedDateTime]("timestamptz", _.format(bpTzDateTimeFormatter), sqlType = Types.TIMESTAMP /*Types.TIMESTAMP_WITH_TIMEZONE*/)

implicit val getPeriod = mkGetResult(_.nextPeriod())
implicit val getPeriodOption = mkGetResult(_.nextPeriodOption())
Expand Down

0 comments on commit abc1577

Please sign in to comment.