Date: Friday, January 13, 2006 @ 00:15:09
Author: marc
Path: /cvsroot/carob/odbsequoia/src
Modified: stmt.cpp (1.5 -> 1.6)
SQLExecDirectW catches exceptions and reports errors/diagnostics
----------+
stmt.cpp | 5 +++++
1 files changed, 5 insertions(+)
Index: odbsequoia/src/stmt.cpp
diff -u odbsequoia/src/stmt.cpp:1.5 odbsequoia/src/stmt.cpp:1.6
--- odbsequoia/src/stmt.cpp:1.5 Wed Jan 11 17:47:12 2006
+++ odbsequoia/src/stmt.cpp Fri Jan 13 00:15:09 2006
@@ -41,6 +41,7 @@
{
try
{
+ diag_records.clear();
std::wstring wstext = fromSQLW(StatementText, TextLength);
bool resultIsSet = carob_stmt->execute(wstext);
if (resultIsSet)
@@ -51,6 +52,10 @@
}
catch (const CarobException& ce)
{
+ DiagRecord diag(ce.getSQLState(),
+ ce.getErrorCode(),
+ ce.description());
+ diag_records.push_back(diag);
return SQL_ERROR;
}
}
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits