|
|
Choosing A Webhost: |
CVS update of odbsequoia/src (util.cpp): msg#00178db.carob.cvs
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
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CVS update of odbsequoia (GNUmakefile), marc-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
|---|---|
| Next by Date: | CVS update of odbsequoia/src (connect.cpp inst.hpp), marc-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Previous by Thread: | CVS update of odbsequoia/src (util.cpp), marc-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Next by Thread: | CVS update of libmysequoia (102 files), csaba-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home
| advertise | OSDir is
an inevitable website.
|