Changeset 26193 for trunk/ippTools/src/disttool.c
- Timestamp:
- Nov 19, 2009, 10:44:27 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/disttool.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/disttool.c
r26192 r26193 52 52 static bool definetargetMode(pxConfig *config); 53 53 static bool updatetargetMode(pxConfig *config); 54 static bool listtarget Mode(pxConfig *config);54 static bool listtargetsMode(pxConfig *config); 55 55 56 56 static bool definedestinationMode(pxConfig *config); … … 100 100 MODECASE(DISTTOOL_MODE_DEFINETARGET, definetargetMode); 101 101 MODECASE(DISTTOOL_MODE_UPDATETARGET, updatetargetMode); 102 MODECASE(DISTTOOL_MODE_LISTTARGET , listtargetMode);102 MODECASE(DISTTOOL_MODE_LISTTARGETS, listtargetsMode); 103 103 MODECASE(DISTTOOL_MODE_DEFINEDESTINATION, definedestinationMode); 104 104 MODECASE(DISTTOOL_MODE_UPDATEDESTINATION, updatedestinationMode); … … 1311 1311 } 1312 1312 1313 static bool listtarget Mode(pxConfig *config)1313 static bool listtargetsMode(pxConfig *config) 1314 1314 { 1315 1315 PS_ASSERT_PTR_NON_NULL(config, false); … … 1611 1611 PXOPT_COPY_S64(config->args, where, "-dest_id", "dest_id", "=="); 1612 1612 PXOPT_COPY_S64(config->args, where, "-target_id", "target_id", "=="); 1613 PXOPT_COPY_STR(config->args, where, "-dest_name", "rcDestination.name", "LIKE"); 1613 1614 PXOPT_COPY_STR(config->args, where, "-filter", "filter", "LIKE"); 1614 1615 … … 1619 1620 return false; 1620 1621 } 1621 psString query = NULL; 1622 psStringAppend(&query, "UPDATE rcInterest join distTarget using(target_id) SET rcInterest.state = '%s'", state); 1622 psString query = pxDataGet("disttool_updateinterest.sql"); 1623 1623 1624 1624 if (psListLength(where->list)) { … … 1634 1634 psFree(where); 1635 1635 1636 if (!p_psDBRunQuery (config->dbh, query)) {1636 if (!p_psDBRunQueryF(config->dbh, query, state)) { 1637 1637 psError(PS_ERR_UNKNOWN, false, "database error"); 1638 1638 psFree(query);
Note:
See TracChangeset
for help on using the changeset viewer.
