Changeset 19187
- Timestamp:
- 08/20/18 21:33:51 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/root2sql.cc
r19186 r19187 710 710 try 711 711 { 712 if (run_delete && !fixed.empty() && !drop && !dry_run) 713 { 714 const mysqlpp::SimpleResult res = 715 connection.query("DELETE FROM `"+table+"` WHERE 1"+where).execute(); 716 712 if (run_delete) 713 { 717 714 if (verbose>0) 718 cout << res.rows() << " row(s) deleted.\n" << endl; 715 cout << "Deleting rows..."; 716 717 if (!fixed.empty() && !drop && !dry_run) 718 { 719 if (verbose>0) 720 cout << endl; 721 722 const mysqlpp::SimpleResult res = 723 connection.query("DELETE FROM `"+table+"` WHERE 1"+where).execute(); 724 725 if (verbose>0) 726 cout << res.rows() << " row(s) deleted.\n" << endl; 727 } 728 else 729 if (verbose>0) 730 cout << " skipped." << endl; 719 731 } 720 732 }
Note:
See TracChangeset
for help on using the changeset viewer.