Date: Friday, August 4, 2006 @ 15:48:59
  Author: csaba
    Path: /cvsroot/carob/carob

Modified: include/ParameterStatement.hpp (1.15 -> 1.16)
          src/ParameterStatement.cpp (1.31 -> 1.32)

Added closeStatement() See the comments in the header.


--------------------------------+
 include/ParameterStatement.hpp |    6 ++++++
 src/ParameterStatement.cpp     |   10 ++++++++++
 2 files changed, 16 insertions(+)


Index: carob/include/ParameterStatement.hpp
diff -u carob/include/ParameterStatement.hpp:1.15 
carob/include/ParameterStatement.hpp:1.16
--- carob/include/ParameterStatement.hpp:1.15   Fri Apr  7 19:01:13 2006
+++ carob/include/ParameterStatement.hpp        Fri Aug  4 15:48:59 2006
@@ -58,6 +58,12 @@
   virtual void            close();
 
   /**
+   * Call Statement.close(). Will not release the objects.
+   * Call this member function only if you know what are you doing.
+   */
+  virtual void            closeStatement();
+
+  /**
    * Execute a SQL statement that may return multiple results.
    * @return true if the result is a ResultSet or false if it is an integer
    * @throw DriverException if the statement is closed
Index: carob/src/ParameterStatement.cpp
diff -u carob/src/ParameterStatement.cpp:1.31 
carob/src/ParameterStatement.cpp:1.32
--- carob/src/ParameterStatement.cpp:1.31       Thu Jul 27 17:10:42 2006
+++ carob/src/ParameterStatement.cpp    Fri Aug  4 15:48:59 2006
@@ -136,6 +136,16 @@
   inStrings.clear();
 }
 
+void ParameterStatement::closeStatement()
+{
+  Statement::close();
+  
+  for (size_t i = 0; i < inStrings.size(); i++ )
+  {
+    inStrings[i] = L"";
+  }
+}
+
 void ParameterStatement::clearParameters()
 {
   std::vector<wstring>::iterator iparam = inStrings.begin();

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

Reply via email to