Changeset 34973
- Timestamp:
- Jan 18, 2013, 11:11:29 AM (14 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 2 edited
-
share/staticskytool_defineskycalrun.sql (modified) (2 diffs)
-
src/staticskytool.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/staticskytool_defineskycalrun.sql
r34761 r34973 1 1 SELECT 2 s ky_id,3 stack _id,2 staticskyRun.sky_id, 3 stackRun.stack_id, 4 4 skycell_id, 5 5 filter, … … 14 14 JOIN stackSumSkyfile USING(stack_id) 15 15 JOIN skycell USING(tess_id, skycell_id) 16 LEFT JOIN skycalRun USING(sky_id, stack_id)16 LEFT JOIN skycalRun ON staticskyRun.sky_id = skycalRun.sky_id AND stackRun.stack_id = skycalRun.stack_id -- join hook %s 17 17 WHERE staticskyRun.state = 'full' 18 18 AND staticskyResult.quality = 0 -
trunk/ippTools/src/staticskytool.c
r34815 r34973 1066 1066 psFree(whereMD); 1067 1067 1068 psString labelHook = psStringCopy(""); 1068 1069 if (!rerun) { 1069 1070 if (label) { 1070 psStringAppend(& query, "\nAND (skycalRun.label IS NULL OR skycalRun.label = '%s')", label);1071 psStringAppend(&labelHook, "\nAND skycalRun.label = '%s'", label); 1071 1072 } 1072 1073 psStringAppend(&query, "\nAND skycal_id IS NULL"); 1073 1074 } 1074 1075 1075 if (!p_psDBRunQuery(config->dbh, query)) { 1076 1077 if (!p_psDBRunQueryF(config->dbh, query, labelHook)) { 1076 1078 psError(PS_ERR_UNKNOWN, false, "database error"); 1079 psFree(labelHook); 1077 1080 psFree(query); 1078 1081 return false; 1079 1082 } 1083 psFree(labelHook); 1080 1084 psFree(query); 1081 1085 … … 1392 1396 PXOPT_COPY_STR(config->args, where, "-label", "skycalRun.label", "=="); 1393 1397 PXOPT_COPY_STR(config->args, where, "-data_group", "skycalRun.data_group", "LIKE"); 1398 PXOPT_COPY_S16(config->args, where, "-quality", "skycalResult.quality", "=="); 1394 1399 PXOPT_COPY_S16(config->args, where, "-fault", "skycalResult.fault", "=="); 1400 1401 if (!pxskycellAddWhere(config, where)) { 1402 psError(PXTOOLS_ERR_CONFIG, false, "failed to add skycell search arguments"); 1403 return false; 1404 } 1395 1405 1396 1406 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false);
Note:
See TracChangeset
for help on using the changeset viewer.
