Changeset 14065 for trunk/ippTools
- Timestamp:
- Jul 6, 2007, 5:42:07 PM (19 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 1 deleted
- 5 edited
-
share/Makefile.am (modified) (1 diff)
-
share/chiptool_completely_processed_exp.sql (modified) (2 diffs)
-
share/chiptool_pendingimfile.sql (modified) (2 diffs)
-
share/chiptool_queuerawimfile.sql (deleted)
-
src/pxchip.c (modified) (2 diffs)
-
src/pxtables.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/Makefile.am
r14059 r14065 9 9 chiptool_pendingimfile.sql \ 10 10 chiptool_processedimfile.sql \ 11 chiptool_queuerawimfile.sql \12 11 detselect_search.sql \ 13 12 detselect_select.sql \ -
trunk/ippTools/share/chiptool_completely_processed_exp.sql
r14058 r14065 2 2 SELECT DISTINCT 3 3 chip_id, 4 exp_id, 4 5 state, 5 6 workdir, … … 15 16 chipProcessedImfile.class_id 16 17 FROM chipRun 17 JOIN chipInputImfile18 USING(chip_id)19 JOIN rawExp20 ON chipInputImfile.exp_id = rawExp.exp_id21 18 JOIN rawImfile 22 ON rawExp.exp_id = rawImfile.exp_id19 USING(exp_id) 23 20 LEFT JOIN chipProcessedImfile 24 ON chip InputImfile.chip_id = chipProcessedImfile.chip_id25 AND chipInputImfile.exp_id = chipProcessedImfile.exp_id26 AND chipInputImfile.class_id = chipProcessedImfile.class_id21 ON chipRun.chip_id = chipProcessedImfile.chip_id 22 AND rawImfile.exp_id = chipProcessedImfile.exp_id 23 AND rawImfile.class_id = chipProcessedImfile.class_id 27 24 WHERE 28 25 chipRun.state = 'run' 29 26 AND chipProcessedImfile.fault = 0 30 27 GROUP BY 31 chip InputImfile.chip_id,32 chip InputImfile.exp_id28 chipRun.chip_id, 29 chipRun.exp_id 33 30 HAVING COUNT(rawImfile.class_id) = COUNT(chipProcessedImfile.class_id) 34 31 ) as Foo -
trunk/ippTools/share/chiptool_pendingimfile.sql
r14025 r14065 1 1 SELECT 2 2 chipRun.*, 3 chipInputImfile.exp_id, 4 chipInputImfile.class_id, 3 rawImfile.class_id, 5 4 rawImfile.uri, 6 5 rawExp.exp_tag, … … 10 9 rawExp.filelevel 11 10 FROM chipRun 12 JOIN chipInputImfile 13 USING(chip_id) 11 JOIN rawExp 12 USING(exp_id) 13 JOIN rawImfile 14 USING(exp_id) 14 15 LEFT JOIN chipProcessedImfile 15 ON chipInputImfile.chip_id = chipProcessedImfile.chip_id 16 AND chipInputImfile.exp_id = chipProcessedImfile.exp_id 17 AND chipInputImfile.class_id = chipProcessedImfile.class_id 18 JOIN rawImfile 19 ON chipInputImfile.exp_id = rawImfile.exp_id 20 AND chipInputImfile.class_id = rawImfile.class_id 21 JOIN rawExp 22 ON rawImfile.exp_id = rawExp.exp_id 16 ON chipRun.chip_id = chipProcessedImfile.chip_id 17 AND rawImfile.exp_id = chipProcessedImfile.exp_id 18 AND rawImfile.class_id = chipProcessedImfile.class_id 23 19 LEFT JOIN chipMask 24 20 ON chipRun.label = chipMask.label -
trunk/ippTools/src/pxchip.c
r14023 r14065 75 75 if (!chipRunInsert(config->dbh, 76 76 0x0, 77 (psS64)atoll(exp_id), 77 78 "run", // state 78 79 workdir, … … 91 92 } 92 93 93 #if 094 // get the chip_id95 long chip_id = psDBLastInsertID(config->dbh);96 #endif97 98 // populate the chipInputImfile table from rawImfile based on exp_id,99 // where the coresponding newExp.state entry is set to stop100 psString query = pxDataGetCached("chiptool_queuerawimfile.sql");101 if (!query) {102 psError(PXTOOLS_ERR_DATA, false, "failed to retreive SQL statement");103 return false;104 }105 106 // queue the imfiles for the exp_id107 if (!p_psDBRunQuery(config->dbh, query, exp_id)) {108 psError(PS_ERR_UNKNOWN, false, "database error");109 return false;110 }111 112 // just to be safe, we should have changed at least one row113 if (psDBAffectedRows(config->dbh) < 1) {114 psError(PS_ERR_UNKNOWN, false,115 "no rows affected - should have changed at least one row");116 return false;117 }118 119 94 // point of no return 120 95 if (!psDBCommit(config->dbh)) { -
trunk/ippTools/src/pxtables.c
r14023 r14065 63 63 CREATE_TABLE(guidePendingExpCreateTable); 64 64 CREATE_TABLE(chipRunCreateTable); 65 CREATE_TABLE(chipInputImfileCreateTable);65 // CREATE_TABLE(chipInputImfileCreateTable); 66 66 CREATE_TABLE(chipProcessedImfileCreateTable); 67 67 CREATE_TABLE(chipMaskCreateTable); … … 144 144 DROP_TABLE(guidePendingExpDropTable); 145 145 DROP_TABLE(chipRunDropTable); 146 DROP_TABLE(chipInputImfileDropTable);146 // DROP_TABLE(chipInputImfileDropTable); 147 147 DROP_TABLE(chipProcessedImfileDropTable); 148 148 DROP_TABLE(chipMaskDropTable);
Note:
See TracChangeset
for help on using the changeset viewer.
