Changeset 14065 for trunk/ippTools/src/pxchip.c
- Timestamp:
- Jul 6, 2007, 5:42:07 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pxchip.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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)) {
Note:
See TracChangeset
for help on using the changeset viewer.
