- Timestamp:
- Feb 6, 2013, 2:34:49 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20121219
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ippTools/src (modified) (2 props)
-
ippTools/src/staticskytool.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20121219
-
branches/eam_branches/ipp-20121219/ippTools/src
- Property svn:ignore
-
old new 46 46 vptool 47 47 sctool 48 releasetool
-
- Property svn:mergeinfo changed
/trunk/ippTools/src merged: 34908,34910,34913,34932-34933,34973-34974,35039-35041,35048
- Property svn:ignore
-
branches/eam_branches/ipp-20121219/ippTools/src/staticskytool.c
r34815 r35096 503 503 PXOPT_COPY_S64(config->args, whereMD, "-sky_id", "sky_id", "=="); 504 504 pxAddLabelSearchArgs (config, whereMD, "-label", "staticskyRun.label", "=="); 505 pxskycellAddWhere(config, whereMD); 505 506 506 507 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); … … 736 737 PXOPT_COPY_S16(config->args, where, "-fault", "staticskyResult.fault", "=="); 737 738 739 if (!pxskycellAddWhere(config, where)) { 740 psError(PXTOOLS_ERR_CONFIG, false, "failed to add skycell search arguments"); 741 return false; 742 } 743 738 744 if (!psListLength(where->list) && !psMetadataLookupBool(NULL, config->args, "-all")) { 739 745 psFree(where); … … 1066 1072 psFree(whereMD); 1067 1073 1074 psString labelHook = psStringCopy(""); 1068 1075 if (!rerun) { 1069 1076 if (label) { 1070 psStringAppend(& query, "\nAND (skycalRun.label IS NULL OR skycalRun.label = '%s')", label);1077 psStringAppend(&labelHook, "\nAND skycalRun.label = '%s'", label); 1071 1078 } 1072 1079 psStringAppend(&query, "\nAND skycal_id IS NULL"); 1073 1080 } 1074 1081 1075 if (!p_psDBRunQuery(config->dbh, query)) { 1082 1083 if (!p_psDBRunQueryF(config->dbh, query, labelHook)) { 1076 1084 psError(PS_ERR_UNKNOWN, false, "database error"); 1085 psFree(labelHook); 1077 1086 psFree(query); 1078 1087 return false; 1079 1088 } 1089 psFree(labelHook); 1080 1090 psFree(query); 1081 1091 … … 1392 1402 PXOPT_COPY_STR(config->args, where, "-label", "skycalRun.label", "=="); 1393 1403 PXOPT_COPY_STR(config->args, where, "-data_group", "skycalRun.data_group", "LIKE"); 1404 PXOPT_COPY_S16(config->args, where, "-quality", "skycalResult.quality", "=="); 1394 1405 PXOPT_COPY_S16(config->args, where, "-fault", "skycalResult.fault", "=="); 1406 1407 if (!pxskycellAddWhere(config, where)) { 1408 psError(PXTOOLS_ERR_CONFIG, false, "failed to add skycell search arguments"); 1409 return false; 1410 } 1395 1411 1396 1412 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); … … 1468 1484 pxAddLabelSearchArgs(config, where, "-filter", "stackRun.filter", "=="); 1469 1485 PXOPT_COPY_S16(config->args, where, "-fault", "skycalResult.fault", "=="); 1486 if (!pxskycellAddWhere(config, where)) { 1487 psError(PXTOOLS_ERR_CONFIG, false, "failed to add skycell search arguments"); 1488 return false; 1489 } 1470 1490 1471 1491 if (!psListLength(where->list) && !psMetadataLookupBool(NULL, config->args, "-all")) {
Note:
See TracChangeset
for help on using the changeset viewer.
