Skip to content

Commit 4c19e16

Browse files
author
Vic
committed
fixed SQL Server schema name bug that prevented from getting tables
1 parent b2db9e3 commit 4c19e16

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

slick/src/main/scala/slick/jdbc/SQLServerProfile.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,7 @@ trait SQLServerProfile extends JdbcProfile {
114114
new ModelBuilder(tables, ignoreInvalidDefaults)
115115

116116
override def defaultTables(implicit ec: ExecutionContext): DBIO[Seq[MTable]] = {
117-
import api._
118-
for {
119-
schema <- Functions.user.result
120-
mtables <- MTable.getTables(None, Some(schema), None, Some(Seq("TABLE")))
121-
} yield mtables
117+
MTable.getTables(None, None, None, Some(Seq("TABLE")))
122118
}
123119

124120
override def defaultSqlTypeName(tmd: JdbcType[_], sym: Option[FieldSymbol]): String = tmd.sqlType match {

0 commit comments

Comments
 (0)