Changeset 19106
- Timestamp:
- 07/31/18 14:46:52 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/calcsource.cc
r19083 r19106 609 609 610 610 if (verbose>0) 611 cout << res. rows() << " row(s) affected.\n"<< endl;611 cout << res.info() << '\n' << endl; 612 612 } 613 613 } … … 666 666 667 667 if (verbose>0) 668 { 668 669 cout << "Total execution time: " << Time().UnixTime()-start.UnixTime() << "s\n" << endl; 670 671 try 672 { 673 const auto resw = 674 connection.query("SHOW WARNINGS").store(); 675 676 for (size_t i=0; i<resw.num_rows(); i++) 677 { 678 const mysqlpp::Row &roww = resw[i]; 679 680 cout << roww["Level"] << '[' << roww["Code"] << "]: "; 681 cout << roww["Message"] << '\n'; 682 } 683 cout << endl; 684 685 } 686 catch (const exception &e) 687 { 688 cerr << "\nSHOW WARNINGS\n\n"; 689 cerr << "SQL query failed:\n" << e.what() << '\n' <<endl; 690 return 8; 691 } 692 } 669 693 670 694 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.