Changeset 31681 for trunk/ippTools/src/staticskytool.c
- Timestamp:
- Jun 22, 2011, 2:29:09 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/staticskytool.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/staticskytool.c
r31293 r31681 128 128 PXOPT_LOOKUP_BOOL(pretend, config->args, "-pretend", false); 129 129 PXOPT_LOOKUP_BOOL(check_inputs, config->args, "-check_inputs", false); 130 PXOPT_LOOKUP_BOOL(rerun, config->args, "-rerun", false); 130 131 131 132 psString select = pxDataGet("staticskytool_definebyquery_select.sql"); … … 149 150 psFree(whereMD); 150 151 151 if (!p_psDBRunQueryF(config->dbh, select, where, num_filter)) { 152 psString make_unique = NULL; 153 if (!rerun) { 154 psStringAppend(&make_unique, "\nAND sky_id IS NULL"); 155 } 156 157 if (!p_psDBRunQueryF(config->dbh, select, where, where, num_filter, make_unique ? make_unique : "")) { 152 158 psError(PS_ERR_UNKNOWN, false, "database error"); 153 159 psFree(select); … … 155 161 } 156 162 psFree(select); 163 psFree(make_unique); 157 164 158 165 // we now have a list of (tess_id, skycell_id) that (potentially) meet out needs
Note:
See TracChangeset
for help on using the changeset viewer.
