diff options
author | vlad <vlad@driver.xyz> | 2017-06-01 14:23:33 -0700 |
---|---|---|
committer | vlad <vlad@driver.xyz> | 2017-06-01 14:23:33 -0700 |
commit | 1f89848cf48a931ccc70fd08060b2112a788a43e (patch) | |
tree | f9603c06a8bbe15e4f0e5572b092fc37a58f99a8 /src | |
parent | 8c2e147e317ec12e63f19c551cdb9a69a8820d27 (diff) | |
download | driver-core-0.13.5.tar.gz driver-core-0.13.5.tar.bz2 driver-core-0.13.5.zip |
Scalafmtv0.13.5
Diffstat (limited to 'src')
-rw-r--r-- | src/main/scala/xyz/driver/core/database/PatchedHsqldbProfile.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/xyz/driver/core/database/PatchedHsqldbProfile.scala b/src/main/scala/xyz/driver/core/database/PatchedHsqldbProfile.scala index a2220e9..1331efc 100644 --- a/src/main/scala/xyz/driver/core/database/PatchedHsqldbProfile.scala +++ b/src/main/scala/xyz/driver/core/database/PatchedHsqldbProfile.scala @@ -9,7 +9,7 @@ trait PatchedHsqldbProfile extends HsqldbDriver { override def defaultSqlTypeName(tmd: JdbcType[_], sym: Option[FieldSymbol]): String = tmd.sqlType match { case java.sql.Types.VARCHAR => val size = sym.flatMap(_.findColumnOption[RelationalProfile.ColumnOption.Length]) - size.fold("LONGVARCHAR")(l => if(l.varying) s"VARCHAR(${l.length})" else s"CHAR(${l.length})") + size.fold("LONGVARCHAR")(l => if (l.varying) s"VARCHAR(${l.length})" else s"CHAR(${l.length})") case _ => super.defaultSqlTypeName(tmd, sym) } } |