[Libreoffice-commits] core.git: connectivity/source
Julien Nabet (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 15 11:11:12 UTC 2020
connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 7ab988abe70ee385ae490d9019e0cfd83c4e0c51
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sat May 9 23:23:06 2020 +0200
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Fri May 15 13:10:26 2020 +0200
mysqlc: fix default transaction level
According to https://dev.mysql.com/doc/refman/8.0/en/innodb-transaction-isolation-levels.html
it's REPEATABLE READ
Change-Id: I7e9b0209528158908d8529f11e09554e372401a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93898
Reviewed-by: Lionel Elie Mamane <lionel at mamane.lu>
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
Tested-by: Jenkins
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx b/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx
index a1e11c9e7ccf..a30e5d61808a 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx
@@ -390,8 +390,7 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMajorVersion()
sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation()
{
- return m_rConnection.getMysqlVersion() >= 32336 ? TransactionIsolation::READ_COMMITTED
- : TransactionIsolation::NONE;
+ return TransactionIsolation::REPEATABLE_READ;
}
sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion()
More information about the Libreoffice-commits
mailing list