Changeset 21402 for trunk/ippTools/src/pzgetimfiles.c
- Timestamp:
- Feb 6, 2009, 3:25:03 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pzgetimfiles.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pzgetimfiles.c
r20813 r21402 101 101 if (status != 0) { 102 102 // mark the summitExp row as faulted 103 if (!p_psDBRunQuery (config->dbh, "UPDATE summitExp SET fault = %d WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", WEXITSTATUS(status), filesetid, camera, telescope)) {103 if (!p_psDBRunQueryF(config->dbh, "UPDATE summitExp SET fault = %d WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", WEXITSTATUS(status), filesetid, camera, telescope)) { 104 104 psError(PS_ERR_UNKNOWN, false, "database error"); 105 105 } … … 117 117 // download an "empty" fileset. 118 118 // mark the summitExp row as faulted 119 if (!p_psDBRunQuery (config->dbh, "UPDATE summitExp SET fault = %d WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", 250, filesetid, camera, telescope)) {119 if (!p_psDBRunQueryF(config->dbh, "UPDATE summitExp SET fault = %d WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", 250, filesetid, camera, telescope)) { 120 120 psError(PS_ERR_UNKNOWN, false, "database error"); 121 121 } … … 145 145 " AND camera = '%s'" 146 146 " AND telescope = '%s'"; 147 if (!p_psDBRunQuery (config->dbh, query, imfiles, filesetid, camera, telescope)) {147 if (!p_psDBRunQueryF(config->dbh, query, imfiles, filesetid, camera, telescope)) { 148 148 // rollback 149 149 if (!psDBRollback(config->dbh)) { … … 162 162 " AND camera = '%s'" 163 163 " AND telescope = '%s'"; 164 if (!p_psDBRunQuery (config->dbh, query, filesetid, camera, telescope)) {164 if (!p_psDBRunQueryF(config->dbh, query, filesetid, camera, telescope)) { 165 165 // rollback 166 166 if (!psDBRollback(config->dbh)) { … … 281 281 " AND telescope = '%s'" 282 282 " AND imfiles IS NULL"; 283 if (!p_psDBRunQuery (config->dbh, query, filesetid, camera, telescope, filesetid, camera, telescope)) {283 if (!p_psDBRunQueryF(config->dbh, query, filesetid, camera, telescope, filesetid, camera, telescope)) { 284 284 // rollback 285 285 if (!psDBRollback(config->dbh)) {
Note:
See TracChangeset
for help on using the changeset viewer.
