Skip to content

Commit

Permalink
fix(lint): dumpling/export/sql_type.go (#51589)
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjingyu97 authored Mar 8, 2024
1 parent cbe52e6 commit f01d941
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion build/nogo_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,6 @@
"pkg/parser/goyacc/": "ignore goyacc code",
"pkg/parser/ast/": "ignore parser/ast code",
"pkg/parser/test_driver/": "ignore parser/test_driver code",
"dumpling/export/sql_type.go": "please fix it",
".*_test\\.go$": "ignore generated code",
".*_generated\\.go$": "ignore generated code",
".*mock.go$": "ignore generated code",
Expand Down
4 changes: 2 additions & 2 deletions dumpling/export/sql_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ func escapeBackslashSQL(s []byte, bf *bytes.Buffer) {
func escapeBackslashCSV(s []byte, bf *bytes.Buffer, opt *csvOption) {
var (
escape byte
last = 0
specCmt byte = 0
last int
specCmt byte
)
if len(opt.delimiter) > 0 {
specCmt = opt.delimiter[0] // if csv has a delimiter, we should use backslash to comment the delimiter in field value
Expand Down

0 comments on commit f01d941

Please sign in to comment.