Changeset 23532 for branches/pap/ippTools/src/magictool.c
- Timestamp:
- Mar 25, 2009, 12:48:19 PM (17 years ago)
- File:
-
- 1 edited
-
branches/pap/ippTools/src/magictool.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/ippTools/src/magictool.c
r23389 r23532 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"); … … 930 930 PXOPT_COPY_S64(config->args, where, "-magic_id", "magic_id", "=="); 931 931 PXOPT_COPY_STR(config->args, where, "-node", "node", "=="); 932 PXOPT_COPY_S16(config->args, where, "- code", "fault", "==");932 PXOPT_COPY_S16(config->args, where, "-fault", "fault", "=="); 933 933 934 934 psString query = psStringCopy("DELETE FROM magicNodeResult WHERE fault != 0"); … … 1024 1024 1025 1025 // default values 1026 PXOPT_LOOKUP_S16( code, config->args, "-code", false, false);1026 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 1027 1027 1028 1028 if (!psDBTransaction(config->dbh)) { … … 1035 1035 uri, 1036 1036 streaks, 1037 code1037 fault 1038 1038 )) { 1039 1039 psError(PS_ERR_UNKNOWN, false, "database error"); … … 1081 1081 psMetadata *where = psMetadataAlloc(); 1082 1082 PXOPT_COPY_S64(config->args, where, "-magic_id", "magic_id", "=="); 1083 PXOPT_COPY_S16(config->args, where, "- code", "fault", "==");1083 PXOPT_COPY_S16(config->args, where, "-fault", "fault", "=="); 1084 1084 1085 1085 if (!psDBTransaction(config->dbh)) {
Note:
See TracChangeset
for help on using the changeset viewer.
