Date: Thursday, March 9, 2006 @ 15:02:45
Author: marc
Path: /cvsroot/carob/odbsequoia/src
Modified: stmt.cpp (1.17 -> 1.18)
Now correctly reporting end of ResultSet
----------+
stmt.cpp | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
Index: odbsequoia/src/stmt.cpp
diff -u odbsequoia/src/stmt.cpp:1.17 odbsequoia/src/stmt.cpp:1.18
--- odbsequoia/src/stmt.cpp:1.17 Thu Mar 9 11:36:57 2006
+++ odbsequoia/src/stmt.cpp Thu Mar 9 15:02:45 2006
@@ -146,9 +146,8 @@
L"Invalid state, no current ResultSet"
" (TODO: print current state)");
- // FIXME: catch exception to set the correct SQLState here?
- // Or rather ask carob to set it.
- carob_stmt->getResultSet()->next();
+ if (! carob_stmt->getResultSet()->next())
+ return SQL_NO_DATA;
if (this->state == S5)
this->state = S6;
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits