mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
v3.2.806-preview20231128 - 修复 Xugu 批量插入/更新 SQL 报错;
This commit is contained in:
@ -35,7 +35,16 @@ namespace FreeSql.Xugu.Curd
|
||||
public override long ExecuteIdentity() => base.SplitExecuteIdentity(_batchValuesLimit > 0 ? _batchValuesLimit : 5000, _batchParameterLimit > 0 ? _batchParameterLimit : 3000);
|
||||
public override List<T1> ExecuteInserted() => base.SplitExecuteInserted(_batchValuesLimit > 0 ? _batchValuesLimit : 5000, _batchParameterLimit > 0 ? _batchParameterLimit : 3000);
|
||||
|
||||
protected override long RawExecuteIdentity()
|
||||
public override string ToSql()
|
||||
{
|
||||
return base.ToSqlValuesOrSelectUnionAllExtension102(true, (d, didx, sb) =>
|
||||
{
|
||||
if (didx > 0)
|
||||
sb.Remove(sb.Length - 3, 1); //批量无逗号
|
||||
}, null);
|
||||
}
|
||||
|
||||
protected override long RawExecuteIdentity()
|
||||
{
|
||||
var sql = this.ToSql();
|
||||
if (string.IsNullOrEmpty(sql)) return 0;
|
||||
|
Reference in New Issue
Block a user