Date: Wednesday, March 8, 2006 @ 21:20:17
Author: marc
Path: /cvsroot/carob/odbsequoia/src
Modified: stmt.hpp (1.11 -> 1.12)
Initializing state in initialization list.
----------+
stmt.hpp | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
Index: odbsequoia/src/stmt.hpp
diff -u odbsequoia/src/stmt.hpp:1.11 odbsequoia/src/stmt.hpp:1.12
--- odbsequoia/src/stmt.hpp:1.11 Fri Feb 24 16:12:43 2006
+++ odbsequoia/src/stmt.hpp Wed Mar 8 21:20:17 2006
@@ -39,15 +39,18 @@
{
public:
CarobNS::Statement* carob_stmt;
- stmt_state_t state; // state according to "Statement Transitions"
- // in the ODBC reference (as far as
- // possible).
+ /** State according to "Statement Transitions" in the ODBC
+ * reference (as far as possible). */
+ stmt_state_t state; // S1 when carob_stmt is allocated
+
ODBCStatement(const ODBCConnection& creator) :
ODBCItem(creator),
+ carob_stmt(0), state(S0),
IRD(*this), IPD(*this),
implicit_ARD(*this, false), implicit_APD(*this, false),
ARD(&implicit_ARD), APD(&implicit_APD)
- { state = S0; };
+ { };
+
SQLRETURN
exec_directw(const SQLWCHAR *StatementText, SQLINTEGER TextLength);
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits