|
|
@ -46,7 +46,7 @@ module ConnectionIsolationLevel |
|
|
|
isolation_level = 'ISOLATION LEVEL READ COMMITTED' |
|
|
|
isolation_level = 'ISOLATION LEVEL READ COMMITTED' |
|
|
|
if OpenProject::Database.mysql?(connection) |
|
|
|
if OpenProject::Database.mysql?(connection) |
|
|
|
connection.execute("SET SESSION TRANSACTION #{isolation_level}") |
|
|
|
connection.execute("SET SESSION TRANSACTION #{isolation_level}") |
|
|
|
else |
|
|
|
elsif OpenProject::Database.postgresql?(connection) |
|
|
|
connection.execute("SET SESSION CHARACTERISTICS AS TRANSACTION #{isolation_level}") |
|
|
|
connection.execute("SET SESSION CHARACTERISTICS AS TRANSACTION #{isolation_level}") |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|