Changeset 31689 for trunk/ippTools
- Timestamp:
- Jun 22, 2011, 4:28:09 PM (15 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 2 edited
-
share/staticskytool_definebyquery_inputs.sql (modified) (1 diff)
-
src/staticskytool.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/staticskytool_definebyquery_inputs.sql
r28091 r31689 11 11 AND stackRun.tess_id = '%s' 12 12 AND stackRun.skycell_id = '%s' 13 -- WHERE hook %s 13 -- WHERE hook 1 %s 14 -- WHERE hook 2 %s 14 15 GROUP BY stackRun.filter -
trunk/ippTools/src/staticskytool.c
r31687 r31689 242 242 return false; 243 243 } 244 psString by_data_group = NULL; 245 psString stack_data_group = NULL; 246 if (group_by_data_group) { 247 stack_data_group = psMetadataLookupStr(&status, row, "data_group"); 248 if (!status) { 249 psError(PS_ERR_UNKNOWN, false, "failed to lookup tess_id"); 250 psFree(output); 251 psFree(inputsSQL); 252 if (!psDBRollback(config->dbh)) { 253 psError(PS_ERR_UNKNOWN, false, "database error"); 254 } 255 return false; 256 } 257 psStringAppend(&by_data_group, " AND stackRun.data_group = '%s'", stack_data_group); 258 } 244 259 245 260 // query for the inputs 246 if (!p_psDBRunQueryF(config->dbh, inputsSQL, tess_id, skycell_id, where)) { 261 if (!p_psDBRunQueryF(config->dbh, inputsSQL, tess_id, skycell_id, where, 262 by_data_group ? by_data_group : "")) { 247 263 psError(PS_ERR_UNKNOWN, false, "database error"); 248 264 psFree(output); … … 302 318 workdir, 303 319 label, 304 data_group ? data_group : label,320 data_group ? data_group : (stack_data_group ? stack_data_group : label), 305 321 dist_group, 306 322 reduction,
Note:
See TracChangeset
for help on using the changeset viewer.
