Date: Friday, December 30, 2005 @ 17:52:11
Author: gilles
Path: /cvsroot/carob/carob
Modified: include/Statement.hpp (1.20 -> 1.21) src/Statement.cpp (1.20 ->
1.21)
'static-ed' endOfResultList
-----------------------+
include/Statement.hpp | 2 +-
src/Statement.cpp | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
Index: carob/include/Statement.hpp
diff -u carob/include/Statement.hpp:1.20 carob/include/Statement.hpp:1.21
--- carob/include/Statement.hpp:1.20 Fri Dec 30 11:38:24 2005
+++ carob/include/Statement.hpp Fri Dec 30 17:52:11 2005
@@ -355,7 +355,7 @@
/** Should the driver to escape processing before sending to the DB? */
bool escapeProcessing;
/** End of result list marker, declared and initialized once for all */
- ResultSetOrUpdateCount endOfResultList;
+ static ResultSetOrUpdateCount endOfResultList;
/**
* Tests if this statement is closed.
* @return <code>true</code> if this statement is closed
Index: carob/src/Statement.cpp
diff -u carob/src/Statement.cpp:1.20 carob/src/Statement.cpp:1.21
--- carob/src/Statement.cpp:1.20 Fri Dec 30 11:38:24 2005
+++ carob/src/Statement.cpp Fri Dec 30 17:52:11 2005
@@ -28,6 +28,8 @@
using namespace CarobNS;
+ResultSetOrUpdateCount Statement::endOfResultList = {false, {-1}};
+
Statement::Statement(Connection* c) :
connectionPtr(c),
lastResultPtr(NULL),
@@ -38,9 +40,6 @@
maxRows(0),
escapeProcessing(true)
{
- //FIXME: make this static
- endOfResultList.isResultSet = false;
- endOfResultList.updateCount = -1;
}
Statement::~Statement()
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits