From 3e507d8cb91b4cb8ac09571a6db8d4212dde461b Mon Sep 17 00:00:00 2001 From: sunkaixuna <610262374@qq.com> Date: Tue, 28 Dec 2021 12:18:13 +0800 Subject: [PATCH] Update mysql bulkcopy linux NewLine --- .../SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs | 2 +- .../SqlSugar/Realization/MySql/SqlBuilder/MySqlFastBuilder.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs b/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs index 23989a677..4a37828d7 100644 --- a/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs +++ b/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs @@ -90,7 +90,7 @@ namespace SqlSugar FieldTerminator = ",", FieldQuotationCharacter = '"', EscapeCharacter = '"', - LineTerminator = "\r\n", + LineTerminator = Environment.NewLine, FileName = fileName, NumberOfLinesToSkip = 0, TableName = dt.TableName, diff --git a/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlFastBuilder.cs b/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlFastBuilder.cs index 56f7ceac0..1aadc759e 100644 --- a/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlFastBuilder.cs +++ b/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlFastBuilder.cs @@ -38,7 +38,7 @@ namespace SqlSugar FieldTerminator = ",", FieldQuotationCharacter = '"', EscapeCharacter = '"', - LineTerminator = "\r\n", + LineTerminator = Environment.NewLine, FileName = fileName, NumberOfLinesToSkip = 0, TableName = dt.TableName,