Ignore:
Timestamp:
07/31/18 14:09:16 (6 years ago)
Author:
tbretz
Message:
Some cosmetics to the output.
File:
1 edited

Legend:

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

    r19103 r19104  
    600600    {
    601601        if (!noinsert && !dry_run)
    602             // => Simple result
    603             connection.query(query).execute();
     602        {
     603            auto q = connection.query(query);
     604            q.execute();
     605            cout << q.info() << '\n' << endl;
     606        }
    604607        else
    605608            cout << "Insert query skipped!" << endl;
     
    618621    if (verbose>0)
    619622    {
    620         cout << count << " row(s) inserted.\n\n";
    621623        cout << "Total execution time: " << Time().UnixTime()-start.UnixTime() << "s\n" << endl;
    622624
     
    625627            const auto resw =
    626628                connection.query("SHOW WARNINGS").store();
    627 
    628             if (resw.num_rows()>0)
    629                 cout << "\nWARNINGS:\n\n";
    630629
    631630            for (size_t i=0; i<resw.num_rows(); i++)
     
    642641        {
    643642            cerr << "\nSHOW WARNINGS\n\n";
    644             cerr << "SQL query failed:\n" << e.what() << endl;
     643            cerr << "SQL query failed:\n" << e.what() << '\n' <<endl;
    645644            return 7;
    646645        }
Note: See TracChangeset for help on using the changeset viewer.