Date: Thursday, May 10, 2007 @ 16:49:00
Author: marc
Path: /cvsroot/carob/carob/src
Modified: DriverResultSet.cpp (1.66 -> 1.67)
CAROB-139 fix: close() can be called twice
---------------------+
DriverResultSet.cpp | 6 ++++++
1 files changed, 6 insertions(+)
Index: carob/src/DriverResultSet.cpp
diff -u carob/src/DriverResultSet.cpp:1.66 carob/src/DriverResultSet.cpp:1.67
--- carob/src/DriverResultSet.cpp:1.66 Thu Apr 5 15:26:15 2007
+++ carob/src/DriverResultSet.cpp Thu May 10 16:49:00 2007
@@ -901,8 +901,14 @@
void DriverResultSet::close() throw (SocketIOException, BackendException,
ControllerException, ProtocolException, UnexpectedException)
{
+ if (isClosed)
+ return;
+
if (hasMoreData)
+ {
connectionPtr->closeRemoteResultSet(cursorName);
+ hasMoreData = false;
+ }
isClosed = true;
}
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits