Skip to content

Commit

Permalink
fix #129
Browse files Browse the repository at this point in the history
  • Loading branch information
tminglei committed Apr 13, 2016
1 parent f31f1d4 commit 30be7d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ trait PgArrayJdbcTypes extends JdbcTypesComponent { driver: PostgresDriver =>
}

//
class SimpleArrayJdbcType[T] private (sqlBaseType: String, tmap: Any => T, tcomap: T => Any)(
class SimpleArrayJdbcType[T] private[slickpg] (sqlBaseType: String, tmap: Any => T, tcomap: T => Any)(
implicit override val classTag: ClassTag[Seq[T]], ctag: ClassTag[T], checked: ArrChecked[T])
extends DriverJdbcType[Seq[T]] { self =>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ trait PgArraySupport extends array.PgArrayExtensions with array.PgArrayJdbcTypes
implicit val simpleStrListTypeMapper: JdbcType[List[String]] = new SimpleArrayJdbcType[String]("text").to(_.toList)
implicit val simpleLongListTypeMapper: JdbcType[List[Long]] = new SimpleArrayJdbcType[Long]("int8").to(_.toList)
implicit val simpleIntListTypeMapper: JdbcType[List[Int]] = new SimpleArrayJdbcType[Int]("int4").to(_.toList)
implicit val simpleShortListTypeMapper: JdbcType[List[Short]] = new SimpleArrayJdbcType[Short]("int2").to(_.toList)
implicit val simpleShortListTypeMapper: JdbcType[List[Short]] = new SimpleArrayJdbcType[Short]("int2", _.asInstanceOf[Int].toShort, identity).to(_.toList)
implicit val simpleFloatListTypeMapper: JdbcType[List[Float]] = new SimpleArrayJdbcType[Float]("float4").to(_.toList)
implicit val simpleDoubleListTypeMapper: JdbcType[List[Double]] = new SimpleArrayJdbcType[Double]("float8").to(_.toList)
implicit val simpleBoolListTypeMapper: JdbcType[List[Boolean]] = new SimpleArrayJdbcType[Boolean]("bool").to(_.toList)
Expand Down

0 comments on commit 30be7d3

Please sign in to comment.