Date: Friday, December 16, 2005 @ 11:43:57
  Author: zsolt
    Path: /cvsroot/carob/carob/src

Modified: Connection.cpp (1.42 -> 1.43)

changed the function fetchMultipleResultsFromStream() to not add to the 
resultset list results where the update count is -1 (which means no more 
results)


----------------+
 Connection.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)


Index: carob/src/Connection.cpp
diff -u carob/src/Connection.cpp:1.42 carob/src/Connection.cpp:1.43
--- carob/src/Connection.cpp:1.42       Thu Dec 15 19:00:50 2005
+++ carob/src/Connection.cpp    Fri Dec 16 11:43:57 2005
@@ -837,13 +837,15 @@
     {
       resultReceived.isResultSet = true;
       resultReceived.resultSetPtr = receiveResultSet();
+      results.push_back(resultReceived);
     }
     else
     {
       resultReceived.isResultSet = false;
       resultReceived.updateCount = receiveIntOrException();
+      if (resultReceived.updateCount != -1)
+        results.push_back(resultReceived);
     }
-    results.push_back(resultReceived);
     
   }
   while (hasResult || resultReceived.updateCount != -1);

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

Reply via email to