Changeset 19104 for trunk/FACT++/src/root2sql.cc
- Timestamp:
- 07/31/18 14:09:16 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/root2sql.cc
r19103 r19104 600 600 { 601 601 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 } 604 607 else 605 608 cout << "Insert query skipped!" << endl; … … 618 621 if (verbose>0) 619 622 { 620 cout << count << " row(s) inserted.\n\n";621 623 cout << "Total execution time: " << Time().UnixTime()-start.UnixTime() << "s\n" << endl; 622 624 … … 625 627 const auto resw = 626 628 connection.query("SHOW WARNINGS").store(); 627 628 if (resw.num_rows()>0)629 cout << "\nWARNINGS:\n\n";630 629 631 630 for (size_t i=0; i<resw.num_rows(); i++) … … 642 641 { 643 642 cerr << "\nSHOW WARNINGS\n\n"; 644 cerr << "SQL query failed:\n" << e.what() << endl;643 cerr << "SQL query failed:\n" << e.what() << '\n' <<endl; 645 644 return 7; 646 645 }
Note:
See TracChangeset
for help on using the changeset viewer.