Skip to content

Commit

Permalink
Merge branch 'zachmu/show-table-schema' of github.com:dolthub/go-mysq…
Browse files Browse the repository at this point in the history
…l-server into zachmu/show-table-schema
  • Loading branch information
zachmu committed Oct 9, 2024
2 parents a881864 + 8287a58 commit 7fa1df4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/planbuilder/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ func (b *Builder) buildShowAllTables(inScope *scope, s *ast.Show) (outScope *sco
dbName = b.ctx.GetCurrentDatabase()
}
db := b.resolveDb(dbName)

if schemaName != "" {
sdb, ok := db.(sql.SchemaDatabase)
if !ok {
Expand All @@ -643,7 +643,7 @@ func (b *Builder) buildShowAllTables(inScope *scope, s *ast.Show) (outScope *sco
err := sql.ErrDatabaseSchemaNotFound.New(schemaName)
b.handleErr(err)
}

db = s
}

Expand Down

0 comments on commit 7fa1df4

Please sign in to comment.