Date: Thursday, March 30, 2006 @ 16:30:25
Author: marc
Path: /cvsroot/carob/odbsequoia/src
Modified: util.cpp (1.5 -> 1.6)
sanity check for fromSQLW(null,...). Related to ODBSEQ-21
----------+
util.cpp | 5 +++++
1 files changed, 5 insertions(+)
Index: odbsequoia/src/util.cpp
diff -u odbsequoia/src/util.cpp:1.5 odbsequoia/src/util.cpp:1.6
--- odbsequoia/src/util.cpp:1.5 Wed Mar 22 21:51:52 2006
+++ odbsequoia/src/util.cpp Thu Mar 30 16:30:24 2006
@@ -21,6 +21,7 @@
#include "util.hpp"
+#include "odbc_exception.hpp"
namespace {
@@ -37,6 +38,10 @@
std::wstring
fromSQLW(const SQLWCHAR * const in, SQLSMALLINT inLen)
{
+ if (0 == in)
+ throw ODBSeqNS::ODBSeqException(L"HY009",
+ L"internal error: util.hpp:SQLW(null,
)");
+
bool isNTS = (SQL_NTS == inLen);
if (sizeof(wchar_t) == sizeof(SQLWCHAR)) // compiler should optimize this
away
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits