Date: Thursday, February 15, 2007 @ 18:40:20
  Author: gilles
    Path: /cvsroot/carob/carob/src

Modified: DriverResultSet.cpp (1.63 -> 1.64)

Removed warningsPtr deletion from DriverResultSet constructor (we are in the 
ctor => no warnings yet!)
Reservation of deserializers vector memory just as we already do for 
columnTypeTags


---------------------+
 DriverResultSet.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: carob/src/DriverResultSet.cpp
diff -u carob/src/DriverResultSet.cpp:1.63 carob/src/DriverResultSet.cpp:1.64
--- carob/src/DriverResultSet.cpp:1.63  Wed Feb 14 17:31:49 2007
+++ carob/src/DriverResultSet.cpp       Thu Feb 15 18:40:20 2007
@@ -133,6 +133,7 @@
     // Don't delete statementWarnings, it will be done by the statement itself
   }  
 }
+
 DriverResultSet::DriverResultSet(Connection* conPtr) throw (ProtocolException,
     SocketIOException, NotImplementedException, UnexpectedException) :
 currentRow(-1),
@@ -155,8 +156,6 @@
   socket>>hasWarnings;
   if (hasWarnings)
   {
-    if (warningsPtr != NULL)
-      delete warningsPtr;
     BackendException* e = new BackendException(socket);
     warningsPtr = Connection::convertToSQLWarnings(e);
   }
@@ -167,6 +166,7 @@
     fields.push_back(new Field(socket));
   }
   columnTypeTags.reserve(nbOfColumns);
+  deserializers.reserve(nbOfColumns);
   TypeTag colTypes(socket);
   if (colTypes != TT_COL_TYPES)
   {

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

Reply via email to