dialect/sql/schema: qualify if schema is given (#4346)

This commit is contained in:
Jannik Clausen
2025-03-10 14:24:01 +01:00
committed by GitHub
parent 7f5f143bd2
commit 80f9cbf5bf
2 changed files with 7 additions and 4 deletions

View File

@@ -937,10 +937,6 @@ func (a *Atlas) realm(tables []*Table) (*schema.Realm, error) {
ss := slices.SortedFunc(maps.Values(sm), func(a, b *schema.Schema) int {
return strings.Compare(a.Name, b.Name)
})
// In case there only is one schema, do not qualify the schema name.
if len(ss) == 1 {
ss[0].Name = ""
}
return &schema.Realm{Schemas: ss}, nil
}