Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenta committed Dec 30, 2021
1 parent b677fe1 commit 0c00650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/charset/encoding_gbk.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (c customGBK) NewEncoder() *encoding.Encoder {
// see https://github.com/pingcap/tidb/issues/30581 get details.
func (c customGBKEncoder) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) {
if bytes.HasPrefix(src, []byte{0xe2, 0x82, 0xac} /* '€' */) {
return 0, 0, errInvalidCharacterString
return 0, 0, ErrInvalidCharacterString
}
return c.gbkEncoder.Transform(dst, src, atEOF)
}
Expand Down

0 comments on commit 0c00650

Please sign in to comment.