Permalink
Browse files

Actually pass the typeName to JdbcModelBuilder.jdbcTypeToScala

  • Loading branch information...
1 parent 8edcc89 commit a5b497a209bc1193fb4102feea49b867dbd95921 @teozkr teozkr committed Feb 17, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 slick/src/main/scala/slick/jdbc/JdbcModelBuilder.scala
@@ -178,7 +178,7 @@ class JdbcModelBuilder(mTables: Seq[MTable], ignoreInvalidDefaults: Boolean)(imp
/** Regex matcher to extract string out ouf surrounding '' */
final val StringPattern = """^'(.*)'$""".r
/** Scala type this column is mapped to */
- def tpe = jdbcTypeToScala(meta.sqlType).toString match {
+ def tpe = jdbcTypeToScala(meta.sqlType, meta.typeName).toString match {
case "java.lang.String" => if(meta.size == Some(1)) "Char" else "String"
case t => t
}

0 comments on commit a5b497a

Please sign in to comment.