Changeset 21402 for trunk/ippTools/src/dettool.c
- Timestamp:
- Feb 6, 2009, 3:25:03 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/dettool.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/dettool.c
r19988 r21402 968 968 } 969 969 970 if (!p_psDBRunQuery (config->dbh, query, (long long) newDet_id, (long long) det_id, iteration)) {970 if (!p_psDBRunQueryF(config->dbh, query, (long long) newDet_id, (long long) det_id, iteration)) { 971 971 psError(PS_ERR_UNKNOWN, false, "database error"); 972 972 psFree(query); … … 1733 1733 1734 1734 char *query = "UPDATE detRun SET iteration = iteration + 1 WHERE det_id = %" PRId64; 1735 if (!p_psDBRunQuery (config->dbh, query, det_id)) {1735 if (!p_psDBRunQueryF(config->dbh, query, det_id)) { 1736 1736 psError(PS_ERR_UNKNOWN, false, 1737 1737 "failed to increment iteration for det_id %" PRId64, det_id); … … 1773 1773 1774 1774 char *query = "UPDATE detRun SET state = '%s' WHERE det_id = %" PRId64; 1775 if (!p_psDBRunQuery (config->dbh, query, state, det_id)) {1775 if (!p_psDBRunQueryF(config->dbh, query, state, det_id)) { 1776 1776 psError(PS_ERR_UNKNOWN, false, "failed to change state for det_id %" PRId64, det_id); 1777 1777 return false; … … 1835 1835 " AND exp_id = %" PRId64 1836 1836 " AND class_id = '%s'"; 1837 if (!p_psDBRunQuery (config->dbh, query, data_state, det_id, exp_id, class_id)) {1837 if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, exp_id, class_id)) { 1838 1838 psError(PS_ERR_UNKNOWN, false, 1839 1839 "failed to change state for det_id %" PRId64 ", exp_id %" PRId64 ", class_id %s", … … 1855 1855 " WHERE det_id = %" PRId64 1856 1856 " AND exp_id = %" PRId64; 1857 if (!p_psDBRunQuery (config->dbh, query, data_state, det_id, exp_id)) {1857 if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, exp_id)) { 1858 1858 psError(PS_ERR_UNKNOWN, false, 1859 1859 "failed to change state for det_id %" PRId64 ", exp_id %" PRId64, … … 1878 1878 " AND iteration = %" PRId32 1879 1879 " AND class_id = %s"; 1880 if (!p_psDBRunQuery (config->dbh, query, data_state, det_id, iteration, class_id)) {1880 if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration, class_id)) { 1881 1881 psError(PS_ERR_UNKNOWN, false, 1882 1882 "failed to change state for det_id %" PRId64 ", iteration %" PRId32 "class_id %s", … … 1900 1900 " AND iteration = %" PRId32 1901 1901 " AND class_id = %s"; 1902 if (!p_psDBRunQuery (config->dbh, query, data_state, det_id, iteration)) {1902 if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration)) { 1903 1903 psError(PS_ERR_UNKNOWN, false, 1904 1904 "failed to change state for det_id %" PRId64 ", iteration %" PRId32, … … 1922 1922 " AND iteration = %" PRId32 1923 1923 " AND class_id = %s"; 1924 if (!p_psDBRunQuery (config->dbh, query, data_state, det_id, iteration, class_id)) {1924 if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration, class_id)) { 1925 1925 psError(PS_ERR_UNKNOWN, false, 1926 1926 "failed to change state for det_id %" PRId64 ", iteration %" PRId32 " class %s", … … 1942 1942 " WHERE det_id = %" PRId64 1943 1943 " AND iteration = %" PRId32; 1944 if (!p_psDBRunQuery (config->dbh, query, data_state, det_id, iteration)) {1944 if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration)) { 1945 1945 psError(PS_ERR_UNKNOWN, false, 1946 1946 "failed to change state for det_id %" PRId64 ", iteration %" PRId32, … … 1965 1965 " AND exp_id = %" PRId64 1966 1966 " AND class_id = '%s'"; 1967 if (!p_psDBRunQuery (config->dbh, query, data_state, det_id, iteration, exp_id, class_id)) {1967 if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration, exp_id, class_id)) { 1968 1968 psError(PS_ERR_UNKNOWN, false, 1969 1969 "failed to change state for det_id %" PRId64 ", iteration %" PRId32 ", exp_id %" PRId64 ", class_id %s", … … 1986 1986 " AND iteration = %" PRId32 1987 1987 " AND exp_id = %" PRId64; 1988 if (!p_psDBRunQuery (config->dbh, query, data_state, det_id, iteration, exp_id)) {1988 if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration, exp_id)) { 1989 1989 psError(PS_ERR_UNKNOWN, false, 1990 1990 "failed to change state for det_id %" PRId64 ", iteration %" PRId32 ", exp_id %" PRId64,
Note:
See TracChangeset
for help on using the changeset viewer.
