Browse Source

Update mysql bulkcopy linux NewLine

pull/12/head
sunkaixuna 3 years ago
parent
commit
3e507d8cb9
  1. 2
      Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs
  2. 2
      Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlFastBuilder.cs

2
Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs

@ -90,7 +90,7 @@ namespace SqlSugar
FieldTerminator = ",", FieldTerminator = ",",
FieldQuotationCharacter = '"', FieldQuotationCharacter = '"',
EscapeCharacter = '"', EscapeCharacter = '"',
LineTerminator = "\r\n", LineTerminator = Environment.NewLine,
FileName = fileName, FileName = fileName,
NumberOfLinesToSkip = 0, NumberOfLinesToSkip = 0,
TableName = dt.TableName, TableName = dt.TableName,

2
Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlFastBuilder.cs

@ -38,7 +38,7 @@ namespace SqlSugar
FieldTerminator = ",", FieldTerminator = ",",
FieldQuotationCharacter = '"', FieldQuotationCharacter = '"',
EscapeCharacter = '"', EscapeCharacter = '"',
LineTerminator = "\r\n", LineTerminator = Environment.NewLine,
FileName = fileName, FileName = fileName,
NumberOfLinesToSkip = 0, NumberOfLinesToSkip = 0,
TableName = dt.TableName, TableName = dt.TableName,

Loading…
Cancel
Save