Date: Wednesday, March 22, 2006 @ 18:50:50
Author: marc
Path: /cvsroot/carob/odbsequoia/src
Modified: connect.cpp (1.17 -> 1.18)
throw 08001 as SQLState instead of garbage.
-------------+
connect.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Index: odbsequoia/src/connect.cpp
diff -u odbsequoia/src/connect.cpp:1.17 odbsequoia/src/connect.cpp:1.18
--- odbsequoia/src/connect.cpp:1.17 Wed Mar 22 18:28:59 2006
+++ odbsequoia/src/connect.cpp Wed Mar 22 18:50:50 2006
@@ -112,7 +112,7 @@
/* Virtual Database name (mandatory, no default) */
if (0 >= SQLGetPrivateProfileString(cdsn, DATABASE_INI, "",
temp, MAX_VALUE_LEN, ODBC_INI))
- throw ODBSeqException(L"???", L"'" WIDENMACRO(DATABASE_INI) L"'"
+ throw ODBSeqException(L"08001", L"'" WIDENMACRO(DATABASE_INI) L"'"
L" parameter not found in .ini file");
std::wstring vdbname = fromString(std::string(temp));
@@ -130,7 +130,9 @@
try {
setLogLevel(StringLogLevel(temp));
} catch (const std::string& errmsg) { // unknown log level!
- throw ODBSeqException(L"????", fromString(errmsg));
+ throw ODBSeqException(L"08001", fromString(errmsg)
+ + L", check " WIDENMACRO(LOG_LEVEL_INI)
+ + L" setting");
}
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits