Skip to content

Commit

Permalink
Fix for #597, negative int default value
Browse files Browse the repository at this point in the history
  • Loading branch information
cvogt committed Jan 15, 2014
1 parent 507f947 commit 0be0423
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion slick-testkit/src/codegen/scala/CodeGeneratorTest.scala
Expand Up @@ -220,7 +220,7 @@ class Tables(val profile: JdbcProfile){
def Boolean = column[Boolean]("Boolean",O.Default(true))
def Byte = column[Byte]("Byte")
def Short = column[Short]("Short")
def Int = column[Int]("Int",O.Default(5))
def Int = column[Int]("Int",O.Default(-5))
def Long = column[Long]("Long",O.Default(5L))
//def java_math_BigInteger = column[java.math.BigInteger]("java_math_BigInteger")
def Float = column[Float]("Float",O.Default(9.999F))
Expand Down
Expand Up @@ -45,7 +45,7 @@ abstract class AbstractSourceCodeGenerator(model: m.Model)
if(classEnabled){
val args = columns.map(c=>
c.default.map( v =>
s"${c.name}: ${c.exposedType}=$v"
s"${c.name}: ${c.exposedType} = $v"
).getOrElse(
s"${c.name}: ${c.exposedType}"
)
Expand Down

0 comments on commit 0be0423

Please sign in to comment.