Author: wyoung
Date: Wed Jul 18 03:53:45 2007
New Revision: 1716

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1716&view=rev
Log:
Simplified Connection ctor.  No functional change, just removed a bunch
of useless code.

Modified:
    trunk/lib/connection.cpp

Modified: trunk/lib/connection.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/connection.cpp?rev=1716&r1=1715&r2=1716&view=diff
==============================================================================
--- trunk/lib/connection.cpp (original)
+++ trunk/lib/connection.cpp Wed Jul 18 03:53:45 2007
@@ -1,10 +1,10 @@
 /***********************************************************************
  connection.cpp - Implements the Connection class.
 
- Copyright (c) 1998 by Kevin Atkinson, (c) 1999, 2000 and 2001 by
- MySQL AB, and (c) 2004-2007 by Educational Technology Resources, Inc.
- Others may also hold copyrights on code in this file.  See the CREDITS
- file in the top directory of the distribution for details.
+ Copyright (c) 1998 by Kevin Atkinson, (c) 1999-2001 by MySQL AB, and
+ (c) 2004-2007 by Educational Technology Resources, Inc.  Others may
+ also hold copyrights on code in this file.  See the CREDITS file in
+ the top directory of the distribution for details.
 
  This file is part of MySQL++.
 
@@ -132,17 +132,7 @@
 connecting_(false)
 {
        mysql_init(&mysql_);
-       if (connect(db, server, user, password, port)) {
-               unlock();
-               copacetic_ = is_connected_ = true;
-       }
-       else {
-               unlock();
-               copacetic_ = is_connected_ = false;
-               if (throw_exceptions()) {
-                       throw ConnectionFailed(error());
-               }
-       }
+       connect(db, server, user, password);
 }
 
 


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to