Permalink
Browse files

Fixed DB2 truncate statement

  • Loading branch information...
1 parent 15350e6 commit fd6c6378b143e8004d357b6cefe0948ad3303e26 @trevorsibanda trevorsibanda committed Aug 16, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 slick/src/main/scala/slick/jdbc/DB2Profile.scala
@@ -131,6 +131,8 @@ trait DB2Profile extends JdbcProfile {
sb.toString
} else super.createIndex(idx)
}
+
+ override def truncateTable = s"TRUNCATE TABLE ${quoteTableName(tableNode)} IMMEDIATE"
}
class ColumnDDLBuilder(column: FieldSymbol) extends super.ColumnDDLBuilder(column) {

0 comments on commit fd6c637

Please sign in to comment.