Changeset 9176
- Timestamp:
- Oct 3, 2006, 4:59:58 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/dettool.c (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/dettool.c
r9160 r9176 804 804 " JOIN detInputExp USING(exp_tag) " 805 805 " JOIN detRun ON detInputExp.det_id = detRun.position" 806 " WHERE detRun.state = 'run'" 806 807 ); 807 808 808 809 if (config->where) { 809 psString whereClause = psDBGenerateWhere SQL(config->where, "rawImfile");810 psStringAppend(&query, " %s", whereClause);810 psString whereClause = psDBGenerateWhereConditionSQL(config->where, "rawImfile"); 811 psStringAppend(&query, " AND %s", whereClause); 811 812 psFree(whereClause); 812 813 } … … 876 877 " AND rawImfile.class_id = detProcessedImfile.class_id" 877 878 " WHERE" 878 " detInputExp.det_id IS NOT NULL" 879 " detRun.state = 'run'" 880 " AND detInputExp.det_id IS NOT NULL" 879 881 " AND detInputExp.exp_tag IS NOT NULL" 880 882 " AND detProcessedImfile.det_id IS NULL" … … 1153 1155 " AND detProcessedImfile.class_id = rawImfile.class_id" 1154 1156 " WHERE" 1155 " detProcessedExp.det_id IS NULL" 1156 " AND detProcessedExp.exp_tag IS NULL" 1157 " AND detInputExp.include = 1" 1157 " detRun.state = 'run'" 1158 " AND detProcessedExp.det_id IS NULL" 1159 " AND detProcessedExp.exp_tag IS NULL" 1160 " AND detInputExp.include = 1" 1158 1161 " GROUP BY" 1159 1162 " detProcessedImfile.class_id," … … 1305 1308 " AND detProcessedImfile.class_id = rawImfile.class_id" 1306 1309 " WHERE" 1307 " detProcessedExp.det_id IS NULL" 1308 " AND detProcessedExp.exp_tag IS NULL" 1309 " AND detInputExp.include = 1" 1310 " AND detRun.position = %s" 1311 " AND detProcessedImfile.exp_tag = '%s'" 1310 " detRun.state = 'run'" 1311 " AND detProcessedExp.det_id IS NULL" 1312 " AND detProcessedExp.exp_tag IS NULL" 1313 " AND detInputExp.include = 1" 1314 " AND detRun.position = %s" 1315 " AND detProcessedImfile.exp_tag = '%s'" 1312 1316 " GROUP BY" 1313 1317 " detProcessedImfile.class_id," … … 1451 1455 " AND detProcessedImfile.class_id = detStackedImfile.class_id" 1452 1456 " WHERE" 1453 " detStackedImfile.det_id IS NULL" 1454 " AND detStackedImfile.iteration IS NULL" 1455 " AND detStackedImfile.class_id IS NULL" 1456 " AND detInputExp.include = 1" 1457 " detRun.state = 'run'" 1458 " AND detStackedImfile.det_id IS NULL" 1459 " AND detStackedImfile.iteration IS NULL" 1460 " AND detStackedImfile.class_id IS NULL" 1461 " AND detInputExp.include = 1" 1457 1462 " GROUP BY" 1458 1463 " rawImfile.class_id" … … 1517 1522 " JOIN detRun" 1518 1523 " ON detProcessedImfile.det_id = detRun.position" 1524 " WHERE" 1525 " detRun.state = 'run'" 1519 1526 ); 1520 1527 1521 1528 if (config->where) { 1522 psString whereClause = psDBGenerateWhere SQL(config->where, NULL);1523 psStringAppend(&query, " %s", whereClause);1529 psString whereClause = psDBGenerateWhereConditionSQL(config->where, NULL); 1530 psStringAppend(&query, " AND %s", whereClause); 1524 1531 psFree(whereClause); 1525 1532 } … … 2134 2141 " ON detInputExp.det_id = detStackedImfile.det_id" 2135 2142 " AND detInputExp.iteration = detStackedImfile.iteration" 2143 " WHERE" 2144 " detRun.state = 'run'" 2136 2145 " GROUP BY" 2137 2146 " rawDetrendExp.exp_tag" … … 2609 2618 " AND detInputExp.iteration = detNormalizedExp.iteration" 2610 2619 " WHERE" 2611 " detNormalizedExp.det_id IS NULL" 2612 " AND detNormalizedExp.iteration IS NULL" 2613 " AND detInputExp.include = 1" 2620 " detRun.state = 'run'" 2621 " AND detNormalizedExp.det_id IS NULL" 2622 " AND detNormalizedExp.iteration IS NULL" 2623 " AND detInputExp.include = 1" 2614 2624 " GROUP BY" 2615 2625 " detNormalizedImfile.iteration," … … 2763 2773 " AND detInputExp.iteration = detNormalizedExp.iteration" 2764 2774 " WHERE" 2765 " detNormalizedExp.det_id IS NULL" 2766 " AND detNormalizedExp.iteration IS NULL" 2767 " AND detInputExp.include = 1" 2768 " AND detRun.position = %s" 2769 " AND detNormalizedImfile.iteration = %d" 2775 " detRun.state = 'run'" 2776 " AND detNormalizedExp.det_id IS NULL" 2777 " AND detNormalizedExp.iteration IS NULL" 2778 " AND detInputExp.include = 1" 2779 " AND detRun.position = %s" 2780 " AND detNormalizedImfile.iteration = %d" 2770 2781 " GROUP BY" 2771 2782 " detNormalizedImfile.iteration," … … 2933 2944 " AND detProcessedImfile.class_id = detResidImfile.class_id" 2934 2945 " WHERE" 2935 " detResidImfile.det_id IS NULL" 2946 " detRun.state = 'run'" 2947 " AND detResidImfile.det_id IS NULL" 2936 2948 " AND detResidImfile.iteration IS NULL" 2937 2949 " AND detResidImfile.exp_tag IS NULL" … … 3517 3529 " AND detInputExp.exp_tag = detResidExp.exp_tag" 3518 3530 " WHERE" 3519 " detResidExp.det_id IS NULL" 3531 " detRun.state = 'run'" 3532 " AND detResidExp.det_id IS NULL" 3520 3533 " AND detResidExp.iteration IS NULL" 3521 3534 " AND detResidExp.exp_tag IS NULL" … … 3625 3638 " AND detInputExp.exp_tag = detResidExp.exp_tag" 3626 3639 " WHERE" 3627 " detResidExp.det_id IS NULL" 3640 " detrun.state = 'run'" 3641 " AND detResidExp.det_id IS NULL" 3628 3642 " AND detResidExp.iteration IS NULL" 3629 3643 " AND detResidExp.exp_tag IS NULL" … … 3929 3943 " AND detRun.iteration = detResidExp.iteration" 3930 3944 " AND detInputExp.exp_tag = detResidExp.exp_tag" 3945 " WHERE" 3946 " detrun.state = 'run'" 3931 3947 " GROUP BY" 3932 3948 " detRun.position," … … 4185 4201 " AND detRun.iteration = detResidExp.iteration" 4186 4202 " AND detInputExp.exp_tag = detResidExp.exp_tag" 4203 " WHERE" 4204 " detrun.state = 'run'" 4187 4205 " GROUP BY" 4188 4206 " detRun.position," … … 4423 4441 " AND detInputExp.exp_tag = detResidExp.exp_tag" 4424 4442 " WHERE" 4425 " detInputExp.exp_tag IS NOT NULL" 4443 " detRun.state = 'run'" 4444 " AND detInputExp.exp_tag IS NOT NULL" 4426 4445 " AND detResidExp.accept IS NOT NULL" 4427 4446 " GROUP BY"
Note:
See TracChangeset
for help on using the changeset viewer.
