Permalink
Browse files

fixed SQL Server schema name bug that prevented from getting tables

  • Loading branch information...
Vic
Vic committed Nov 8, 2017
1 parent b2db9e3 commit 4c19e16d0fc74178cb5d2fc59c1f8fdc8e1e17d2
Showing with 1 addition and 5 deletions.
  1. +1 −5 slick/src/main/scala/slick/jdbc/SQLServerProfile.scala
@@ -114,11 +114,7 @@ trait SQLServerProfile extends JdbcProfile {
new ModelBuilder(tables, ignoreInvalidDefaults)
override def defaultTables(implicit ec: ExecutionContext): DBIO[Seq[MTable]] = {
import api._
for {
schema <- Functions.user.result
mtables <- MTable.getTables(None, Some(schema), None, Some(Seq("TABLE")))
} yield mtables
MTable.getTables(None, None, None, Some(Seq("TABLE")))
}
override def defaultSqlTypeName(tmd: JdbcType[_], sym: Option[FieldSymbol]): String = tmd.sqlType match {

0 comments on commit 4c19e16

Please sign in to comment.