Skip to content

Commit

Permalink
fix namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
MalikHou committed May 13, 2021
1 parent a694b53 commit 3e1e6b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/proxy/driver/queryctx_exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (q *QueryCtxImpl) isStmtAllowed(ctx context.Context, sqlDigest uint32) bool

func (q *QueryCtxImpl) getBreakerName(ctx context.Context, sql string, breaker Breaker) (string, bool) {
switch breaker.GetBreakerScope() {
case "namesapce":
case "namespace":
return q.ns.Name(), true
case "db":
return q.currentDB, true
Expand Down

0 comments on commit 3e1e6b0

Please sign in to comment.