Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Actually pass the typeName to JdbcModelBuilder.jdbcTypeToScala
  • Loading branch information
nightkr committed Feb 17, 2016
1 parent 8edcc89 commit a5b497a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slick/src/main/scala/slick/jdbc/JdbcModelBuilder.scala
Expand Up @@ -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
}
Expand Down

0 comments on commit a5b497a

Please sign in to comment.