Changeset 37976
- Timestamp:
- Mar 12, 2015, 5:28:10 PM (11 years ago)
- Location:
- tags/ipp-pv3-20140717/ippTools
- Files:
-
- 2 edited
-
share/difftool_definewarpstack.sql (modified) (4 diffs)
-
src/difftool.c (modified) (3 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-pv3-20140717/ippTools/share/difftool_definewarpstack.sql
r35192 r37976 2 2 -- and check results against existing diffs 3 3 SELECT 4 exp_id, 5 warp_id, 6 filter, 7 warpLabel, 8 warpDataGroup, 9 Inputs.tess_id, 10 Inputs.skycell_id, 11 stack_id, 12 stackLabel, 13 stackDataGroup, 14 diff_id, 15 diffLabel 16 FROM 17 ( 18 SELECT 4 19 exp_id, 5 20 warp_id, … … 11 26 MAX(stack_id) AS stack_id, 12 27 stackRun.label AS stackLabel, 13 stackRun.data_group AS stackDataGroup, 14 diff_id, 15 diffRun.label AS diffLabel 28 stackRun.data_group AS stackDataGroup 16 29 FROM warpRun 17 30 JOIN fakeRun USING(fake_id) … … 25 38 stackRun.tess_id = warpRun.tess_id) 26 39 JOIN stackSumSkyfile USING(stack_id) 27 LEFT JOIN diffInputSkyfile ON28 (warp_id = diffInputSkyfile.warp1 AND29 stack_id = diffInputSkyfile.stack2 AND30 diffInputSkyfile.skycell_id = stackRun.skycell_id AND31 diffInputSkyfile.tess_id = stackRun.tess_id)32 LEFT JOIN diffRun USING(diff_id)33 40 WHERE 34 41 warpRun.state = 'full' … … 41 48 -- %s 42 49 GROUP BY exp_id,warp_id,skycell_id 50 ) AS Inputs 51 LEFT JOIN 52 ( 53 SELECT 54 diff_id, 55 diffRun.label AS diffLabel, 56 warp1, 57 stack2, 58 skycell_id, 59 diffInputSkyfile.tess_id 60 FROM 61 diffRun JOIN diffInputSkyfile USING(diff_id,tess_id) 62 WHERE 63 diff_mode = 2 64 -- %s 65 ) AS Diffs ON 66 (warp_id = warp1 AND 67 stack_id = stack2 AND 68 Diffs.skycell_id = Inputs.skycell_id AND 69 Diffs.tess_id = Inputs.tess_id) 70 WHERE 71 1 72 -- %s 73 -
tags/ipp-pv3-20140717/ippTools/src/difftool.c
- Property svn:mergeinfo changed
/trunk/ippTools/src/difftool.c merged: 37974
r37948 r37976 1235 1235 1236 1236 PXOPT_COPY_S64(config->args, where, "-exp_id", "exp_id", "=="); 1237 PXOPT_COPY_STR(config->args, where, "-filter", " filter", "==");1237 PXOPT_COPY_STR(config->args, where, "-filter", "rawExp.filter", "=="); 1238 1238 PXOPT_COPY_STR(config->args, where, "-comment", "comment", "LIKE"); 1239 1239 PXOPT_COPY_S64(config->args, where, "-warp_id", "warpRun.warp_id", "=="); … … 1284 1284 1285 1285 psString whereClause = psDBGenerateWhereConditionSQL(where,NULL); 1286 psString diffWhereClause = psStringCopy(""); 1287 psString joinWhereClause = psStringCopy(""); 1286 1288 1287 1289 // Don't queue things that already have diffs. 1288 1290 if (! (reRun || newTemplates) ) { 1289 psStringAppend(& whereClause, "\nAND diff_id IS NULL\n");1291 psStringAppend(&joinWhereClause, "\nAND diff_id IS NULL\n"); 1290 1292 } 1291 1293 // Append diff qualifiers, if we have them 1292 1294 if (label) { 1293 psStringAppend(& whereClause, "\nAND ((diffRun.label = '%s') OR (diffRun.label IS NULL))",label);1295 psStringAppend(&diffWhereClause, "\nAND ((diffRun.label = '%s') OR (diffRun.label IS NULL))",label); 1294 1296 } 1295 1297 if (data_group) { 1296 psStringAppend(& whereClause, "\nAND ((diffRun.data_group = '%s') OR (diffRun.data_group IS NULL))",data_group);1298 psStringAppend(&diffWhereClause, "\nAND ((diffRun.data_group = '%s') OR (diffRun.data_group IS NULL))",data_group); 1297 1299 } 1298 1300 if (reduction) { 1299 psStringAppend(& whereClause, "\nAND ((diffRun.reduction = '%s') OR (diffRun.reduction IS NULL))",reduction);1301 psStringAppend(&diffWhereClause, "\nAND ((diffRun.reduction = '%s') OR (diffRun.reduction IS NULL))",reduction); 1300 1302 } 1301 1303 … … 1305 1307 1306 1308 // This is just a simple query, so we don't need to do a transaction 1307 if (!p_psDBRunQueryF(config->dbh, query, whereClauseString )) {1309 if (!p_psDBRunQueryF(config->dbh, query, whereClauseString, diffWhereClause,joinWhereClause)) { 1308 1310 psError(PS_ERR_UNKNOWN, false, "database error"); 1309 1311 psFree(query); - Property svn:mergeinfo changed
Note:
See TracChangeset
for help on using the changeset viewer.
