Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions dotnet/src/dotnetframework/GxClasses/Data/GXDataADO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,11 @@ public void SetIsolationLevel( ushort level)
m_dataRecord.IsolationLevelTrn = IsolationLevel.Serializable;
GXLogging.Debug(log, "Setting IsolationLevel : Serializable " + ((int)m_dataRecord.IsolationLevelTrn));
}
else if (level == 4)
{
m_dataRecord.IsolationLevelTrn = IsolationLevel.RepeatableRead;
GXLogging.Debug(log, "Setting IsolationLevel : Repeatable Read " + ((int)m_dataRecord.IsolationLevelTrn));
}
else
{
m_dataRecord.IsolationLevelTrn = IsolationLevel.ReadUncommitted;
Expand Down Expand Up @@ -2606,6 +2611,10 @@ private void Initialize(IGxDataRecord db, string id, int hnd, IGxContext context
{
isoLevelNum = 3;
}
else if (Config.GetValueOf(ds, "Connection-" + id + "-IsolationLevel", out isolevel) && isolevel.ToUpper() == "RR")
{
isoLevelNum = 4;
}
else if (Config.GetValueOf("ISOLATION_LEVEL", out isolevel) && isolevel.ToUpper() == "CR")
{
isoLevelNum = 2;
Expand All @@ -2614,6 +2623,10 @@ private void Initialize(IGxDataRecord db, string id, int hnd, IGxContext context
{
isoLevelNum = 3;
}
else if (Config.GetValueOf("ISOLATION_LEVEL", out isolevel) && isolevel.ToUpper() == "RR")
{
isoLevelNum = 4;
}

connection.SetIsolationLevel(isoLevelNum);

Expand Down