Changeset 18336 for trunk/ippTools/src/pxregister.c
- Timestamp:
- Jun 26, 2008, 3:39:54 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/pxregister.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pxregister.c
r14023 r18336 29 29 #include "pxregister.h" 30 30 31 bool pxnewExpSetState(pxConfig *config, const char *exp_id, const char *state)31 bool pxnewExpSetState(pxConfig *config, psS64 exp_id, const char *state) 32 32 { 33 PS_ASSERT_PTR_NON_NULL(exp_id, false); 33 if (!exp_id) { 34 psError(PS_ERR_UNKNOWN, true, "0 is not a valid exp_id"); 35 return false; 36 } 34 37 PS_ASSERT_PTR_NON_NULL(state, false); 35 38 … … 46 49 } 47 50 48 char *query = "UPDATE newExp SET state = '%s' WHERE exp_id = '%s'";51 char *query = "UPDATE newExp SET state = '%s' WHERE exp_id = %"PRId64; 49 52 if (!p_psDBRunQuery(config->dbh, query, state, exp_id)) { 50 53 psError(PS_ERR_UNKNOWN, false, 51 "failed to change state for exp_id % s", exp_id);54 "failed to change state for exp_id %"PRId64, exp_id); 52 55 return false; 53 56 }
Note:
See TracChangeset
for help on using the changeset viewer.
