Permalink
Browse files

fixed SQL Server schema name bug that prevented from getting tables

  • Loading branch information...
Vic
Vic committed Mar 2, 2018
1 parent 4c19e16 commit 5e4f5e777462fd8a47cb65e56833c70cbe2652ef
Showing with 1 addition and 1 deletion.
  1. +1 −1 slick/src/main/scala/slick/jdbc/SQLServerProfile.scala
@@ -114,7 +114,7 @@ trait SQLServerProfile extends JdbcProfile {
new ModelBuilder(tables, ignoreInvalidDefaults)
override def defaultTables(implicit ec: ExecutionContext): DBIO[Seq[MTable]] = {
MTable.getTables(None, None, None, Some(Seq("TABLE")))
MTable.getTables(None, None, None, Some(Seq("TABLE"))).map(_.filter(!_.name.schema.contains("sys")))
}
override def defaultSqlTypeName(tmd: JdbcType[_], sym: Option[FieldSymbol]): String = tmd.sqlType match {

0 comments on commit 5e4f5e7

Please sign in to comment.