Update pgsql

This commit is contained in:
sunkaixuan 2024-04-29 11:27:48 +08:00
parent f1ac6f0a21
commit b3b1965583

View File

@ -237,6 +237,8 @@ namespace SqlSugar
Check.Exception(whereColumns == null || whereColumns.Count() == 0, "where columns count=0 or need primary key");
var isAuto = this.context.CurrentConnectionConfig.IsAutoCloseConnection;
this.context.CurrentConnectionConfig.IsAutoCloseConnection = false;
var old = this.context.Ado.IsDisableMasterSlaveSeparation;
this.context.Ado.IsDisableMasterSlaveSeparation = true;
DataTable dt = ToDdateTable(datas);
IFastBuilder buider = GetBuider();
buider.Context = context;
@ -255,6 +257,7 @@ namespace SqlSugar
this.context.CurrentConnectionConfig.IsAutoCloseConnection = isAuto;
buider.CloseDb();
End(datas, false, true);
this.context.Ado.IsDisableMasterSlaveSeparation = old;
return result;
}
catch (Exception)