Date: Thursday, March 9, 2006 @ 16:11:49
Author: marc
Path: /cvsroot/carob/odbsequoia/src
Modified: stmt.cpp (1.19 -> 1.20) stmt.hpp (1.14 -> 1.15)
Fixed bugs in in_cursor_state()
----------+
stmt.cpp | 4 ++--
stmt.hpp | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
Index: odbsequoia/src/stmt.cpp
diff -u odbsequoia/src/stmt.cpp:1.19 odbsequoia/src/stmt.cpp:1.20
--- odbsequoia/src/stmt.cpp:1.19 Thu Mar 9 16:01:30 2006
+++ odbsequoia/src/stmt.cpp Thu Mar 9 16:11:49 2006
@@ -79,8 +79,8 @@
ODBCStatement::row_count(SQLHSTMT shdle, SQLLEN * rowcount)
{
// DM will probably catch this before us
- if (! in_state_cursor())
- throw ODBSeqException(L"HY010", L"not in cursor state for
SQLRowCount");
+ if (! in_state_cursor() && state != S4)
+ throw ODBSeqException(L"HY010", L"not in executed or cursor state for
SQLRowCount");
*rowcount = carob_stmt->getUpdateCount();
Index: odbsequoia/src/stmt.hpp
diff -u odbsequoia/src/stmt.hpp:1.14 odbsequoia/src/stmt.hpp:1.15
--- odbsequoia/src/stmt.hpp:1.14 Thu Mar 9 16:01:30 2006
+++ odbsequoia/src/stmt.hpp Thu Mar 9 16:11:49 2006
@@ -97,7 +97,7 @@
bool
in_state_cursor() const
- { return (state == S4 || state == S5 || state == S7); }
+ { return (state == S5 || state == S6 || state == S7); }
ODBCImplParamDesc IRD;
ODBCImplRowDesc IPD;
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits