Update 达梦

This commit is contained in:
sunkaixuan 2024-09-04 12:52:27 +08:00
parent acda5190ea
commit 01b59e35e9

View File

@ -52,7 +52,8 @@ namespace SqlSugar
if (this.IsOffIdentity)
{
var tableName = this.GetTableNameString;
result = $"SET IDENTITY_INSERT {tableName} ON;" + result.TrimEnd(';') + $";SET IDENTITY_INSERT {tableName} OFF"; ;
result = $"SET IDENTITY_INSERT {tableName} ON;" + result.TrimEnd(';') + $";SET IDENTITY_INSERT {tableName} OFF";
result = result.Replace(";\r\n;", ";");
}
return result;
}