mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-22 07:09:25 +00:00
#1470 - Change OnQueryOnly to default to OnQueryOnly.COMMIT
This commit is contained in:
1 parent
94e6fe90e5
commit
6d1e3a08e1
2 files changed
+2
-2
No files matched your search
@@ -52,7 +52,7 @@ public class DatabasePlatform {
|
||||
/**
|
||||
* The behaviour used when ending a read only transaction at read committed isolation level.
|
||||
*/
|
||||
protected OnQueryOnly onQueryOnly = OnQueryOnly.ROLLBACK;
|
||||
protected OnQueryOnly onQueryOnly = OnQueryOnly.COMMIT;
|
||||
|
||||
/**
|
||||
* The open quote used by quoted identifiers.
|
||||
|
||||
@@ -301,7 +301,7 @@ public class TransactionManager implements SpiTransactionManager {
|
||||
}
|
||||
|
||||
// default to rollback if not defined on the platform
|
||||
return dbPlatformOnQueryOnly == null ? OnQueryOnly.ROLLBACK : dbPlatformOnQueryOnly;
|
||||
return dbPlatformOnQueryOnly == null ? OnQueryOnly.COMMIT : dbPlatformOnQueryOnly;
|
||||
}
|
||||
|
||||
public String getServerName() {
|
||||
|
||||
Reference in new issue
Block a user