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

Issue1811 #1813

Merged
merged 6 commits into from
Sep 12, 2023
Merged

Issue1811 #1813

merged 6 commits into from
Sep 12, 2023

Conversation

ColdWaterLW
Copy link
Collaborator

}
size := currentPos + 1
if size > maxZipFileSize {
return "", false, _err.New("file can't be bigger than 100M")
Copy link
Member

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 {
Copy link
Member

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 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

压缩包里有文件夹如何处理

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r.File是已经遍历了所有的文件夹

@sjjian sjjian merged commit dd40f92 into main Sep 12, 2023
2 checks passed
@sjjian sjjian deleted the issue-1811 branch September 12, 2023 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants