Date: Wednesday, November 23, 2005 @ 16:16:46
Author: gilles
Path: /cvsroot/carob/carob
Modified: include/Statement.hpp (1.4 -> 1.5) src/Statement.cpp (1.4 ->
1.5)
Added current resultSet getter
Set back ResultSet pointer to NULL in getMoreResult() so we will have a NULL
value if there is no more result
-----------------------+
include/Statement.hpp | 6 ++++++
src/Statement.cpp | 3 +++
2 files changed, 9 insertions(+)
Index: carob/include/Statement.hpp
diff -u carob/include/Statement.hpp:1.4 carob/include/Statement.hpp:1.5
--- carob/include/Statement.hpp:1.4 Wed Nov 23 15:15:27 2005
+++ carob/include/Statement.hpp Wed Nov 23 16:16:46 2005
@@ -151,6 +151,12 @@
void setResultSetType(int value)
throw (DriverException, UnexpectedException);
/**
+ * Returns the current result as a <code>DriverResultSet</code> pointer.
+ *
+ * @return pointer to the current result set; null if there are no more
+ */
+ DriverResultSet* getResultSet() { return resultPtr; }
+ /**
* Retrieves the concurrency mode for the <code>ResultSet</code>.
* @return <code>CONCUR_READ_ONLY</code> or <code>CONCUR_UPDATABLE</code>
*/
Index: carob/src/Statement.cpp
diff -u carob/src/Statement.cpp:1.4 carob/src/Statement.cpp:1.5
--- carob/src/Statement.cpp:1.4 Wed Nov 23 15:15:27 2005
+++ carob/src/Statement.cpp Wed Nov 23 16:16:46 2005
@@ -107,7 +107,10 @@
UnexpectedException)
{
if (resultPtr != NULL)
+ {
resultPtr->close();
+ resultPtr = NULL;
+ }
updateCount = -1;
ResultSetOrUpdateCount nextResult;
if (resultListIterator == resultList.end())
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits