Changeset 23688 for trunk/ippTools/src/magictool.c
- Timestamp:
- Apr 2, 2009, 2:51:37 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTools/src/magictool.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/pap (added) merged: 23511,23520-23521,23532,23578-23581,23596-23599,23603-23604,23606-23608,23619-23621,23638-23639,23641,23646-23648,23651-23653,23656,23672-23674,23677-23684
- Property svn:mergeinfo changed
-
trunk/ippTools/src/magictool.c
r23660 r23688 535 535 536 536 // default values 537 PXOPT_LOOKUP_S16( code, config->args, "-code", false, false);538 539 if ( code> 0) {537 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 538 539 if (fault > 0) { 540 540 char *query = "UPDATE magicRun SET fault = %d, state = 'full' WHERE magic_id = %" PRId64; 541 if (!p_psDBRunQueryF(config->dbh, query, code, magic_id)) {541 if (!p_psDBRunQueryF(config->dbh, query, fault, magic_id)) { 542 542 psError(PS_ERR_UNKNOWN, false, 543 543 "failed to set fault for magic_id %" PRId64, magic_id); … … 561 561 psMetadata *where = psMetadataAlloc(); 562 562 PXOPT_COPY_S64(config->args, where, "-magic_id", "magic_id", "=="); 563 PXOPT_COPY_S16(config->args, where, "- code", "fault", "==");563 PXOPT_COPY_S16(config->args, where, "-fault", "fault", "=="); 564 564 565 565 psString query = psStringCopy("UPDATE magicRun SET fault = 0, state = 'run' WHERE fault != 0"); … … 908 908 909 909 // default values 910 PXOPT_LOOKUP_S16( code, config->args, "-code", false, false);910 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 911 911 912 912 if (!magicNodeResultInsert(config->dbh, … … 914 914 node, 915 915 uri, 916 code916 fault 917 917 )) { 918 918 psError(PS_ERR_UNKNOWN, false, "database error"); … … 931 931 PXOPT_COPY_STR(config->args, where, "-node", "node", "=="); 932 932 PXOPT_COPY_STR(config->args, where, "-label", "label", "=="); 933 PXOPT_COPY_S16(config->args, where, "- code", "magicNodeResult.fault", "==");933 PXOPT_COPY_S16(config->args, where, "-fault", "fault", "=="); 934 934 935 935 psString query = pxDataGet("magictool_revertnode.sql"); … … 1037 1037 1038 1038 // default values 1039 PXOPT_LOOKUP_S16( code, config->args, "-code", false, false);1039 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 1040 1040 1041 1041 if (!psDBTransaction(config->dbh)) { … … 1048 1048 uri, 1049 1049 streaks, 1050 code1050 fault 1051 1051 )) { 1052 1052 psError(PS_ERR_UNKNOWN, false, "database error"); … … 1094 1094 psMetadata *where = psMetadataAlloc(); 1095 1095 PXOPT_COPY_S64(config->args, where, "-magic_id", "magic_id", "=="); 1096 PXOPT_COPY_S16(config->args, where, "- code", "fault", "==");1096 PXOPT_COPY_S16(config->args, where, "-fault", "fault", "=="); 1097 1097 1098 1098 if (!psDBTransaction(config->dbh)) {
Note:
See TracChangeset
for help on using the changeset viewer.
