Skip to content

Commit

Permalink
fix: 修复 sql 光标移动造成拦截失效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Dec 28, 2021
1 parent d056402 commit 0d45705
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/proxy/dbparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (p *DBParser) parseInputState(b []byte) []byte {
}
p.command = ""
p.output = ""
return []byte{utils.CharCleanLine, '\r'}
return []byte{CharCTRLE, utils.CharCleanLine, '\r'}
}
}
} else {
Expand Down Expand Up @@ -224,7 +224,7 @@ func (p *DBParser) forbiddenCommand(cmd string) {
User: p.currentUser}
p.command = ""
p.output = ""
p.userOutputChan <- []byte{utils.CharCleanLine, '\r'}
p.userOutputChan <- []byte{CharCTRLE, utils.CharCleanLine, '\r'}
return
}

Expand Down

0 comments on commit 0d45705

Please sign in to comment.