Changeset 9708 for trunk/ippTools/src/detselect.c
- Timestamp:
- Oct 20, 2006, 6:01:12 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/detselect.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/detselect.c
r9467 r9708 69 69 PS_ASSERT_PTR_NON_NULL(config, false); 70 70 71 # define JOSH_SQL 072 # if (JOSH_SQL)73 71 psString query = psStringCopy( 74 "SELECT "75 " det NormalizedImfile.det_id,"76 " det NormalizedImfile.iteration"72 "SELECT DISTINCT" 73 " detRunSummary.det_id," 74 " detRunSummary.iteration" 77 75 " FROM detRun" 78 " JOIN detInputExp"79 // can't join on the iteration here as we want the results from all80 // iterations81 " ON detRun.det_id = detInputExp.det_id"82 " JOIN detNormalizedImfile"83 " ON detInputExp.det_id = detNormalizedImfile.det_id"84 " AND detInputExp.iteration = detNormalizedImfile.iteration"85 " JOIN rawDetrendExp"86 " ON detInputExp.exp_tag = rawDetrendExp.exp_tag"87 76 " JOIN detRunSummary" 88 " ON detInputExp.det_id = detRunSummary.det_id" 89 " AND detInputExp.iteration = detRunSummary.iteration" 77 " USING(det_id)" 90 78 " WHERE" 91 79 " detRun.state = 'stop'" 92 80 " AND detRunSummary.accept = 1" 93 81 ); 94 # else82 # if 0 95 83 psString query = psStringCopy( 96 84 "SELECT DISTINCT" … … 122 110 123 111 if (config->where) { 124 psString whereClause = psDBGenerateWhereConditionSQL(config->where, " rawDetrendExp");112 psString whereClause = psDBGenerateWhereConditionSQL(config->where, "detRun"); 125 113 psStringAppend(&query, " AND %s", whereClause); 126 114 psFree(whereClause);
Note:
See TracChangeset
for help on using the changeset viewer.
