Changeset 27168
- Timestamp:
- Mar 3, 2010, 3:23:12 PM (16 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 2 edited
-
share/regtool_pendingcompressimfile.sql (modified) (1 diff)
-
src/regtool.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/regtool_pendingcompressimfile.sql
r27163 r27168 1 1 SELECT rawImfile.*,rawExp.workdir,rawExp.exp_tag from rawImfile 2 2 JOIN rawExp USING(exp_id) 3 WHERE (data_state = 'goto_compressed' OR data_state = 'goto_lossy') 3 WHERE ((data_state = 'goto_compressed' AND state = 'goto_compressed') 4 OR (data_state = 'goto_lossy' AND state = 'goto_lossy')) 4 5 -- where hook %s 5 6 -- limit hook %s -
trunk/ippTools/src/regtool.c
r27153 r27168 1356 1356 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 1357 1357 1358 psString query = pxDataGet("regtool_updatebyquery.sql");1359 if (!query) {1360 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement");1361 return(false);1362 }1363 1358 psString limitString = NULL; 1364 1359 if (limit) { … … 1366 1361 psStringPrepend(&limitString, "\n"); 1367 1362 } 1363 // Update the imfiles first, because if you select by state, you'll clobber things 1364 psString query = pxDataGet("regtool_updatebyqueryimfile.sql"); 1365 if (!query) { 1366 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement"); 1367 return(false); 1368 } 1369 1368 1370 // printf(query,set_state,whereClause,limitString); 1369 1371 if (!p_psDBRunQueryF(config->dbh, query, set_state, whereClause, limitString ? limitString : "")) { … … 1377 1379 1378 1380 psFree(query); 1379 // Now up date the imfiles.1380 query = pxDataGet("regtool_updatebyquery imfile.sql");1381 // Now up date the exposure. 1382 query = pxDataGet("regtool_updatebyquery.sql"); 1381 1383 if (!query) { 1382 1384 psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement");
Note:
See TracChangeset
for help on using the changeset viewer.
