Changeset 35856
- Timestamp:
- Jul 25, 2013, 4:05:32 PM (13 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 2 edited
-
share/stacktool_tosummary.sql (modified) (2 diffs)
-
src/stacktool.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/stacktool_tosummary.sql
r28375 r35856 1 SELECT DISTINCT sass_id,rawExp.camera,stackRun.workdir,stackRun.tess_id,stackRun.state 1 SELECT sass_id,camera,workdir,tess_id,state FROM 2 (SELECT sass_id,rawExp.camera,stackRun.workdir,stackRun.tess_id,stackRun.state, 3 sum((stackRun.state = 'full')) AS is_done, sum(1) AS is_defined 2 4 FROM stackRun 3 5 JOIN stackInputSkyfile ON stackRun.stack_id = stackInputSkyfile.stack_id … … 12 14 WHERE stackRun.state = 'full' AND 13 15 stackSummary.projection_cell IS NULL 16 -- WHERE HOOK %s 17 GROUP BY sass_id 18 ) AS T 19 WHERE is_done = is_defined -
trunk/ippTools/src/stacktool.c
r34800 r35856 1475 1475 // generate where strings for arguments that require extra processing 1476 1476 // beyond PXOPT_COPY* 1477 psString whereClause; 1477 1478 if (psListLength(where->list)) { 1478 psString whereClause = psDBGenerateWhereConditionSQL(where, NULL); 1479 psStringAppend(&query, " AND %s", whereClause); 1480 psFree(whereClause); 1479 whereClause = psDBGenerateWhereConditionSQL(where, NULL); 1480 psStringPrepend(&whereClause, "\n AND "); 1481 1481 } else if (!all) { 1482 1482 psError(PXTOOLS_ERR_CONFIG, true, "search parameters or -all are required"); 1483 psFree(whereClause); 1483 1484 return false; 1484 1485 } … … 1493 1494 } 1494 1495 1495 if (!p_psDBRunQuery (config->dbh, query)) {1496 if (!p_psDBRunQueryF(config->dbh, query, whereClause)) { 1496 1497 psError(PS_ERR_UNKNOWN, false, "database error"); 1498 psFree(whereClause); 1497 1499 psFree(query); 1498 1500 return false; 1499 1501 } 1502 psFree(whereClause); 1500 1503 psFree(query); 1501 1504
Note:
See TracChangeset
for help on using the changeset viewer.
