提交 9a897af0 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

update build script for windows

上级 0f0603f1
......@@ -76,7 +76,12 @@ func Print(rows [][]string, format string, table string, colTypes []bool, fields
testData.Table.Rows = append(testData.Table.Rows, row)
if format == "sql" {
sent := fmt.Sprintf("INSERT INTO %s(%s) VALUES(%s)", table, strings.Join(fields, ","), valueList)
fieldNames := make([]string, 0)
for _, f := range fields {
fieldNames = append(fieldNames, "`" + f + "`")
}
sent := fmt.Sprintf("INSERT INTO %s(%s) VALUES(%s)", table, strings.Join(fieldNames, ", "), valueList)
sql = sql + sent + ";\n"
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册