-
Notifications
You must be signed in to change notification settings - Fork 187
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
Issue1811 #1813
Issue1811 #1813
Conversation
} | ||
size := currentPos + 1 | ||
if size > maxZipFileSize { | ||
return "", false, _err.New("file can't be bigger than 100M") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
提示的是100M,实际是10M。不一致
return "", false, fmt.Errorf("parse sqls from xml failed: %v", err) | ||
} | ||
for i := range ss { | ||
if _, err = sqlBuffer.WriteString(";"); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果上一次SQL的结尾有";" 则不需要写入";"
} | ||
var sqlBuffer strings.Builder | ||
xmlContents := make([]string, len(r.File)) | ||
for i := range r.File { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
压缩包里有文件夹如何处理
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r.File是已经遍历了所有的文件夹
#1811