Skip to content

Commit 9823cb8

Browse files
Raderpulltheflower
andauthored
Namespace exists use downcase check (#1248)
Co-authored-by: Zhang ZeHua <pulltheflower@163.com>
1 parent 91f7fdd commit 9823cb8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builder/store/database/namespace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (s *NamespaceStoreImpl) Exists(ctx context.Context, path string) (exists bo
6060
return s.db.Operator.Core.
6161
NewSelect().
6262
Model(&namespace).
63-
Where("path =?", path).
63+
Where("LOWER(path) = LOWER(?)", path).
6464
Exists(ctx)
6565
}
6666

0 commit comments

Comments
 (0)