Changeset 9406
- Timestamp:
- Oct 8, 2006, 12:57:23 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/detselect.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/detselect.c
r9404 r9406 69 69 PS_ASSERT_PTR_NON_NULL(config, false); 70 70 71 # define JOSH_SQL 0 72 # if (JOSH_SQL) 71 73 psString query = psStringCopy( 72 74 "SELECT" … … 90 92 " AND detRunSummary.accept = 1" 91 93 ); 94 # else 95 psString query = psStringCopy( 96 "SELECT DISTINCT" 97 " detRunSummary.det_id," 98 " detRunSummary.iteration," 99 " rawImfile.class," 100 " detRun.det_type" 101 // " detRun.state," 102 // " detRunSummary.accept," 103 // " rawDetrendExp.camera" 104 " FROM detRun" 105 " JOIN detRunSummary " 106 " ON detRun.position = detRunSummary.det_id" 107 " JOIN detInputExp" 108 " ON detRunSummary.det_id = detInputExp.det_id" 109 " AND detRunSummary.iteration = detInputExp.iteration" 110 " JOIN rawImfile" 111 " ON detInputExp.exp_tag = rawImfile.exp_tag" 112 " JOIN rawDetrendExp" 113 " ON detInputExp.exp_tag = rawDetrendExp.exp_tag" 114 " WHERE detRun.state = 'stop'" 115 " AND detRunSummary.accept = 1" 116 // XXX the following entry is needed to exclude db mismatched 117 // XXX these are caused by an error upstream and should be fixed 118 " AND detRun.det_type = rawDetrendExp.object" 119 ); 120 # endif 92 121 93 122 if (config->where) { … … 105 134 } 106 135 107 psStringAppend(&query, " LIMIT 1");136 // psStringAppend(&query, " LIMIT 1"); 108 137 109 138 if (!p_psDBRunQuery(config->dbh, query)) {
Note:
See TracChangeset
for help on using the changeset viewer.
