Mercurial > hg > orthanc-databases
diff PostgreSQL/Plugins/PostgreSQLIndex.cpp @ 216:fbb52129158a
TransactionType given to PostgreSQLTransaction constructor
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 26 Mar 2021 17:47:56 +0100 |
parents | 13a3863df7fa |
children | 73cc85f3d9c1 |
line wrap: on
line diff
--- a/PostgreSQL/Plugins/PostgreSQLIndex.cpp Fri Mar 26 17:32:29 2021 +0100 +++ b/PostgreSQL/Plugins/PostgreSQLIndex.cpp Fri Mar 26 17:47:56 2021 +0100 @@ -81,7 +81,7 @@ } { - PostgreSQLTransaction t(*db); + PostgreSQLTransaction t(*db, TransactionType_ReadWrite); if (!db->DoesTableExist("Resources")) { @@ -127,7 +127,7 @@ } { - PostgreSQLTransaction t(*db); + PostgreSQLTransaction t(*db, TransactionType_ReadWrite); int hasTrigram = 0; if (!LookupGlobalIntegerProperty(hasTrigram, *db, t, @@ -174,7 +174,7 @@ } { - PostgreSQLTransaction t(*db); + PostgreSQLTransaction t(*db, TransactionType_ReadWrite); int property = 0; if (!LookupGlobalIntegerProperty(property, *db, t,