Changeset 21402 for trunk/ippTools/src/pxcam.c
- Timestamp:
- Feb 6, 2009, 3:25:03 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pxcam.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pxcam.c
r20542 r21402 134 134 135 135 char *query = "UPDATE camRun SET state = '%s' WHERE cam_id = %" PRId64; 136 if (!p_psDBRunQuery (config->dbh, query, state, cam_id)) {136 if (!p_psDBRunQueryF(config->dbh, query, state, cam_id)) { 137 137 psError(PS_ERR_UNKNOWN, false, 138 138 "failed to change state for cam_id %" PRId64, cam_id); … … 164 164 } 165 165 166 if (!p_psDBRunQuery (config->dbh, query, state)) {166 if (!p_psDBRunQueryF(config->dbh, query, state)) { 167 167 psFree(query); 168 168 psError(PS_ERR_UNKNOWN, false, "database error"); … … 182 182 183 183 char *query = "UPDATE camRun SET camRun.label = '%s' WHERE cam_id = %" PRId64; 184 if (!p_psDBRunQuery (config->dbh, query, label, cam_id)) {184 if (!p_psDBRunQueryF(config->dbh, query, label, cam_id)) { 185 185 psError(PS_ERR_UNKNOWN, false, 186 186 "failed to change state for cam_id %" PRId64, cam_id); … … 204 204 } 205 205 206 if (!p_psDBRunQuery (config->dbh, query, label)) {206 if (!p_psDBRunQueryF(config->dbh, query, label)) { 207 207 psFree(query); 208 208 psError(PS_ERR_UNKNOWN, false, "database error"); … … 242 242 // XXX chip_id is being cast here work around psS64 have a different type 243 243 // different on 32/64 244 if (!p_psDBRunQuery (config->dbh, query,244 if (!p_psDBRunQueryF(config->dbh, query, 245 245 "new", // state 246 246 workdir ? workdir : "NULL",
Note:
See TracChangeset
for help on using the changeset viewer.
