From c7d6d9f974a57edd43e7ebd0460a272797c0a16f Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 17 Apr 2023 19:59:30 +0800 Subject: [PATCH] Synchronization code --- .../SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs b/Src/Asp.NetCore2/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs index 2d565ff30..5f3d5d447 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs @@ -164,7 +164,7 @@ namespace SqlSugar { colum = table.Columns[i]; if (i != 0) sb.Append(","); - if (colum.DataType == typeof(string) && (row[colum].ToString().Contains(",") || row[colum].ToString().Contains("\r") || row[colum].ToString().Contains("\""))) + if (colum.DataType == typeof(string) && (row[colum].ToString().Contains(",") || row[colum].ToString().Contains("\r") || row[colum].ToString().Contains("\"") || row[colum].ToString().Contains("\n"))) { sb.Append("\"" + row[colum].ToString().Replace("\"", "\"\"") + "\""); }