changeset 308:6a668f5d1069

added warning comment
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 12 Jul 2021 17:22:53 +0200
parents 8de3a1ecac11
children d192bfd0e752
files Framework/Common/DatabaseManager.h
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Common/DatabaseManager.h	Mon Jul 12 16:53:28 2021 +0200
+++ b/Framework/Common/DatabaseManager.h	Mon Jul 12 17:22:53 2021 +0200
@@ -193,6 +193,13 @@
     };
 
 
+    /**
+     * WARNING: At any given time, there must be at most 1 object of
+     * the "CachedStatement" class in the scope, otherwise error
+     * "Cannot execute more than one statement in an implicit
+     * transaction" is generated if no explicit transaction is
+     * present.
+     **/
     class CachedStatement : public StatementBase
     {
     private: