Skip to content

Commit

Permalink
Merge pull request #371 from margussipria/fix-naming-conflicts
Browse files Browse the repository at this point in the history
Fix naming conflicts
  • Loading branch information
tminglei authored Oct 20, 2017
2 parents 39e3007 + 580d336 commit bee06f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ trait PgDateSupportJoda extends date.PgDateExtensions with utils.PgCommonJdbcTyp
fnFromString = (s) => DateTime.parse(s, tzDateTimeFormatter(s)),
fnToString = (v) => v.toString(jodaTzDateTimeFormatter),
hasLiteralForm = false)
implicit val date2InstantTypeMapper: JdbcType[Instant] = new GenericJdbcType[Instant]("timestamptz",
implicit val jodaInstantTypeMapper: JdbcType[Instant] = new GenericJdbcType[Instant]("timestamptz",
fnFromString = (s) => Instant.parse(s, tzDateTimeFormatter(s)),
fnToString = (v) => v.toString(jodaTzDateTimeFormatter),
hasLiteralForm = false)
Expand Down Expand Up @@ -94,17 +94,17 @@ trait PgDateSupportJoda extends date.PgDateExtensions with utils.PgCommonJdbcTyp
implicit def jodaTzTimestampOptColumnExtensionMethods(c: Rep[Option[DateTime]]) =
new TimestampColumnExtensionMethods[LocalDate, LocalTime, DateTime, LocalDateTime, Period, Option[DateTime]](c)

implicit def date2Timestamp1ColumnExtensionMethods(c: Rep[Instant]) =
implicit def jodaTimestamp1ColumnExtensionMethods(c: Rep[Instant]) =
new TimestampColumnExtensionMethods[LocalDate, LocalTime, Instant, LocalDateTime, Period, Instant](c)
implicit def date2Timestamp1OptColumnExtensionMethods(c: Rep[Option[Instant]]) =
implicit def jodaTimestamp1OptColumnExtensionMethods(c: Rep[Option[Instant]]) =
new TimestampColumnExtensionMethods[LocalDate, LocalTime, Instant, LocalDateTime, Period, Option[Instant]](c)
}

trait JodaDateTimePlainImplicits extends JodaDateTimeFormatters with JodaTimeCodeGenSupport {
import java.sql.Types
import utils.PlainSQLUtils._

implicit class PgDate2TimePositionedResult(r: PositionedResult) {
implicit class PgJodaTimePositionedResult(r: PositionedResult) {
def nextLocalDate() = nextLocalDateOption().orNull
def nextLocalDateOption() = r.nextStringOption().map(LocalDate.parse(_, jodaDateFormatter))
def nextLocalTime() = nextLocalTimeOption().orNull
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=0.13.15
sbt.version=0.13.16
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ logLevel := Level.Warn
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"

// Add sbt PGP Plugin
addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.2")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0")

0 comments on commit bee06f5

Please sign in to comment.