Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lint): dumpling/export/sql_type.go #51589

Merged
merged 3 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading