Date: Friday, March 31, 2006 @ 00:44:15
  Author: marc
    Path: /cvsroot/carob/odbsequoia/src

Modified: env.cpp (1.12 -> 1.13)

Fixed exception sqlstate and message for FakeODBC2 key


---------+
 env.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: odbsequoia/src/env.cpp
diff -u odbsequoia/src/env.cpp:1.12 odbsequoia/src/env.cpp:1.13
--- odbsequoia/src/env.cpp:1.12 Thu Mar 30 23:03:19 2006
+++ odbsequoia/src/env.cpp      Fri Mar 31 00:44:15 2006
@@ -49,9 +49,9 @@
     /* Fake ODBC version 2 */
     if (0 > SQLGetPrivateProfileString(MYDRIVER_NAME_INST_INI, 
FAKEODBC2_INST_INI, "true",
                                        temp, MAX_VALUE_LEN, ODBCINST_INI))
-        // How could this fail anyway?
-        throw ODBSeqException(L"TODO",
-                              L"Invalid " WIDENMACRO(FAKEODBC2_INST_INI) L" 
value");
+        // How could this fail ?
+        throw ODBSeqException(L"HY000",
+                              L"Error while searching " 
WIDENMACRO(FAKEODBC2_INST_INI) L" key");
 
     if (0 == std::string(temp).compare("false"))
         fake_version2 = false;

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to