Changeset 19078 for branches/eam_branch_20080719/ippTools/src/dettool.c
- Timestamp:
- Aug 14, 2008, 3:28:57 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080719/ippTools/src/dettool.c
r18991 r19078 911 911 psFree(time_filter); 912 912 913 if (!p_psDBRunQuery(config->dbh, query, ( psS64)newDet_id,det_id)) {913 if (!p_psDBRunQuery(config->dbh, query, (long long) newDet_id, (long long) det_id)) { 914 914 psError(PS_ERR_UNKNOWN, false, "database error"); 915 915 psFree(query); … … 1807 1807 1808 1808 1809 bool setStackedImfileDataState(pxConfig *config, psS64 det_id, psS32 iteration, const char *data_state) 1810 { 1811 PS_ASSERT_PTR_NON_NULL(config, false); 1809 bool setStackedImfileDataState(pxConfig *config, psS64 det_id, psS32 iteration, const char *class_id, const char *data_state) 1810 { 1811 PS_ASSERT_PTR_NON_NULL(config, false); 1812 PS_ASSERT_PTR_NON_NULL(class_id, false); 1812 1813 PS_ASSERT_PTR_NON_NULL(data_state, false); 1813 1814 … … 1816 1817 char *query = "UPDATE detStackedImfile SET data_state = '%s'" 1817 1818 " WHERE det_id = %" PRId64 1818 " AND iteration = %" PRId32; 1819 if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, iteration)) { 1819 " AND iteration = %" PRId32 1820 " AND class_id = %s"; 1821 if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, iteration, class_id)) { 1820 1822 psError(PS_ERR_UNKNOWN, false, 1821 "failed to change state for det_id %" PRId64 ", iteration %" PRId32 ,1822 det_id, iteration );1823 "failed to change state for det_id %" PRId64 ", iteration %" PRId32 "class_id %s", 1824 det_id, iteration, class_id); 1823 1825 return false; 1824 1826 }
Note:
See TracChangeset
for help on using the changeset viewer.
