mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
MySql Db.Fastest.BulkCop " bug
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -164,7 +164,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
colum = table.Columns[i];
|
colum = table.Columns[i];
|
||||||
if (i != 0) sb.Append(",");
|
if (i != 0) sb.Append(",");
|
||||||
if (colum.DataType == typeof(string) &&( row[colum].ToString().Contains(",") || row[colum].ToString().Contains("\r")))
|
if (colum.DataType == typeof(string) &&( row[colum].ToString().Contains(",") || row[colum].ToString().Contains("\r")||row[colum].ToString().Contains("\"")))
|
||||||
{
|
{
|
||||||
sb.Append("\"" + row[colum].ToString().Replace("\"", "\"\"") + "\"");
|
sb.Append("\"" + row[colum].ToString().Replace("\"", "\"\"") + "\"");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user