Date: Friday, March 3, 2006 @ 16:18:47
  Author: gilles
    Path: /cvsroot/carob/carob/src

Modified: Connection.cpp (1.70 -> 1.71)

In finalizeConnect(), if the controller didn't found the vdb, throw 
AuthenticationException instead of ConnectionException
Fixes CAROB-71


----------------+
 Connection.cpp |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)


Index: carob/src/Connection.cpp
diff -u carob/src/Connection.cpp:1.70 carob/src/Connection.cpp:1.71
--- carob/src/Connection.cpp:1.70       Fri Feb 24 12:56:41 2006
+++ carob/src/Connection.cpp    Fri Mar  3 16:18:47 2006
@@ -176,7 +176,6 @@
     // 3. send the database name
     *driverSocketPtr<<parameters.getDatabaseName();
     dbNameSend = true;
-    //TODO: See if we need a fflush here...
     // 4. send user/pass
     *driverSocketPtr<<parameters.getUserName();
     userNameSend = true;
@@ -271,7 +270,7 @@
     {
       wstring vdbReason;
       *driverSocketPtr >> vdbReason;
-      throw ConnectionException(L"Connection failed: "+vdbReason);
+      throw AuthenticationException(L"Connection failed: "+vdbReason);
     }
     *driverSocketPtr >> authenticated;
     authenticatedRead = true;

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

Reply via email to