Changeset 19180


Ignore:
Timestamp:
08/19/18 11:06:49 (6 years ago)
Author:
tbretz
Message:
For debugging purpose print the client version before the connection can fail.
Location:
trunk/FACT++/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fits2sql.cc

    r19178 r19180  
    561561        cout << "\n---------------------- Connecting database -------------------------" << endl;
    562562
    563     Database connection(uri);
    564 
    565     if (verbose>0)
    566     {
    567         cout << "Client Version: " << connection.client_version() << '\n';
     563    if (verbose>0)
     564    {
     565        cout << "Connecting to database...\n";
     566        cout << "Client Version: " << mysqlpp::Connection().client_version() << endl;
     567    }
     568
     569    Database connection(uri); // Keep alive while fetching rows
     570
     571    if (verbose>0)
    568572        cout << "Server Version: " << connection.server_version() << endl;
    569     }
    570573
    571574    if (print_connection)
  • trunk/FACT++/src/root2sql.cc

    r19178 r19180  
    598598    // Checking for database connection
    599599
     600    if (verbose>0)
     601    {
     602        cout << "Connecting to database...\n";
     603        cout << "Client Version: " << mysqlpp::Connection().client_version() << endl;
     604    }
     605
    600606    Database connection(uri);
    601607
    602608    if (verbose>0)
    603     {
    604         cout << "Client Version: " << connection.client_version() << '\n';
    605609        cout << "Server Version: " << connection.server_version() << endl;
    606     }
    607610
    608611    if (print_connection)
  • trunk/FACT++/src/rootifysql.cc

    r19178 r19180  
    595595
    596596    if (verbose>0)
    597         cout << "Connecting to database..." << endl;
    598 
     597    {
     598        cout << "Connecting to database...\n";
     599        cout << "Client Version: " << mysqlpp::Connection().client_version() << endl;
     600    }
    599601
    600602    Database connection(uri); // Keep alive while fetching rows
    601603
    602604    if (verbose>0)
    603     {
    604         cout << "Client Version: " << connection.client_version() << '\n';
    605605        cout << "Server Version: " << connection.server_version() << endl;
    606     }
    607606
    608607    if (print_connection)
Note: See TracChangeset for help on using the changeset viewer.