Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed SQL Server schema name bug that prevented from getting tables
  • Loading branch information
Vic committed Nov 8, 2017
1 parent b2db9e3 commit 4c19e16
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions slick/src/main/scala/slick/jdbc/SQLServerProfile.scala
Expand Up @@ -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 {
Expand Down

0 comments on commit 4c19e16

Please sign in to comment.