Author: mysqlpp
Date: Sat Dec 29 04:14:39 2007
New Revision: 2054

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2054&view=rev
Log:
Made resetdb dtest-aware so it goes back to its old non-verbose
"connecting" message so as not to tie bmark.txt to local details.

Modified:
    trunk/examples/resetdb.cpp

Modified: trunk/examples/resetdb.cpp
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/resetdb.cpp?rev=2054&r1=2053&r2=2054&view=diff
==============================================================================
--- trunk/examples/resetdb.cpp (original)
+++ trunk/examples/resetdb.cpp Sat Dec 29 04:14:39 2007
@@ -77,10 +77,16 @@
        mysqlpp::Connection con;
        try {
                if (parse_command_line(argc, argv, 0, &server, &user, &pass)) {
-                       cout << "Connecting to '" << 
-                                       (user ? user : "USERNAME") << "'@'" <<
-                                       (server ? server : "localhost") << "', 
password '" << 
-                                       (pass ? pass : "") << "'..." << endl;
+                       extern bool dtest_mode;
+                       if (dtest_mode) {
+                               cout << "Connecting to database server..." << 
endl;
+                       }
+                       else {
+                               cout << "Connecting to '" << 
+                                               (user ? user : "USERNAME") << 
"'@'" <<
+                                               (server ? server : "localhost") 
<< "', with" <<
+                                               (pass[0] ? "" : "out") << " 
password..." << endl;
+                       }
                        con.connect(0, server, user, pass);
                }
                else {


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

Reply via email to