提交 292d2c86 编写于 作者: fantasy_cs's avatar fantasy_cs

fix: the tool import-text

上级 b2e3e5ff
......@@ -3,9 +3,10 @@ package main
import (
"flag"
"fmt"
"strings"
"github.com/easysoft/zendata/src/test/import/comm"
fileUtils "github.com/easysoft/zendata/src/utils/file"
"strings"
)
var (
......@@ -36,7 +37,7 @@ func main() {
insertSqlArr := make([]string, 0)
for _, line := range strings.Split(content, "\n") {
arr := strings.Split(strings.TrimSpace(line), " ")
arr := strings.Fields(strings.TrimSpace(line))
if colNum >= len(arr) {
continue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册