Date: Monday, January 29, 2007 @ 16:00:49
  Author: marc
    Path: /cvsroot/carob/carob/src

Modified: Connection.cpp (1.105 -> 1.106)

Logging debug "deleting statements" only when auto_delete_statements is true


----------------+
 Connection.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: carob/src/Connection.cpp
diff -u carob/src/Connection.cpp:1.105 carob/src/Connection.cpp:1.106
--- carob/src/Connection.cpp:1.105      Thu Jan 25 16:56:57 2007
+++ carob/src/Connection.cpp    Mon Jan 29 16:00:49 2007
@@ -327,11 +327,12 @@
 
   isClosed = true;
 
-  if (isDebugEnabled())
-    logDebug(fctName, L"Deleting statements created by this connection");
   // delete all statements created by this connection unless told not to
   if (auto_delete_statements)
   {
+    if (isDebugEnabled())
+      logDebug(fctName, L"Deleting statements created by this connection");
+
     for (std::list<Statement*>::iterator iter = created_statements.begin();
         iter != created_statements.end(); iter++)
     {

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to