Index: trunk/ippTools/src/dettool.c
===================================================================
--- trunk/ippTools/src/dettool.c	(revision 19988)
+++ trunk/ippTools/src/dettool.c	(revision 21402)
@@ -968,5 +968,5 @@
     }
 
-    if (!p_psDBRunQuery(config->dbh, query, (long long) newDet_id, (long long) det_id, iteration)) {
+    if (!p_psDBRunQueryF(config->dbh, query, (long long) newDet_id, (long long) det_id, iteration)) {
         psError(PS_ERR_UNKNOWN, false, "database error");
         psFree(query);
@@ -1733,5 +1733,5 @@
 
     char *query = "UPDATE detRun SET iteration = iteration + 1 WHERE det_id = %" PRId64;
-    if (!p_psDBRunQuery(config->dbh, query, det_id)) {
+    if (!p_psDBRunQueryF(config->dbh, query, det_id)) {
         psError(PS_ERR_UNKNOWN, false,
                 "failed to increment iteration for det_id %" PRId64, det_id);
@@ -1773,5 +1773,5 @@
 
     char *query = "UPDATE detRun SET state = '%s' WHERE det_id = %" PRId64;
-    if (!p_psDBRunQuery(config->dbh, query, state, det_id)) {
+    if (!p_psDBRunQueryF(config->dbh, query, state, det_id)) {
         psError(PS_ERR_UNKNOWN, false, "failed to change state for det_id %" PRId64, det_id);
         return false;
@@ -1835,5 +1835,5 @@
 	" AND exp_id = %" PRId64 
 	" AND class_id = '%s'";
-    if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, exp_id, class_id)) {
+    if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, exp_id, class_id)) {
         psError(PS_ERR_UNKNOWN, false,
                 "failed to change state for det_id %" PRId64 ", exp_id %" PRId64 ", class_id %s", 
@@ -1855,5 +1855,5 @@
 	" WHERE det_id = %" PRId64
 	" AND exp_id = %" PRId64;
-    if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, exp_id)) {
+    if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, exp_id)) {
         psError(PS_ERR_UNKNOWN, false,
                 "failed to change state for det_id %" PRId64 ", exp_id %" PRId64, 
@@ -1878,5 +1878,5 @@
 	" AND iteration = %" PRId32
 	" AND class_id = %s";
-    if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, iteration, class_id)) {
+    if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration, class_id)) {
         psError(PS_ERR_UNKNOWN, false,
                 "failed to change state for det_id %" PRId64 ", iteration %" PRId32 "class_id %s", 
@@ -1900,5 +1900,5 @@
 	" AND iteration = %" PRId32
 	" AND class_id = %s";
-    if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, iteration)) {
+    if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration)) {
         psError(PS_ERR_UNKNOWN, false,
                 "failed to change state for det_id %" PRId64 ", iteration %" PRId32, 
@@ -1922,5 +1922,5 @@
 	" AND iteration = %" PRId32
 	" AND class_id = %s";
-    if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, iteration, class_id)) {
+    if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration, class_id)) {
         psError(PS_ERR_UNKNOWN, false,
                 "failed to change state for det_id %" PRId64 ", iteration %" PRId32 " class %s", 
@@ -1942,5 +1942,5 @@
 	" WHERE det_id = %" PRId64
 	" AND iteration = %" PRId32;
-    if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, iteration)) {
+    if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration)) {
         psError(PS_ERR_UNKNOWN, false,
                 "failed to change state for det_id %" PRId64 ", iteration %" PRId32, 
@@ -1965,5 +1965,5 @@
 	" AND exp_id = %" PRId64 
 	" AND class_id = '%s'";
-    if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, iteration, exp_id, class_id)) {
+    if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration, exp_id, class_id)) {
         psError(PS_ERR_UNKNOWN, false,
                 "failed to change state for det_id %" PRId64 ", iteration %" PRId32 ", exp_id %" PRId64 ", class_id %s", 
@@ -1986,5 +1986,5 @@
 	" AND iteration = %" PRId32 
 	" AND exp_id = %" PRId64;
-    if (!p_psDBRunQuery(config->dbh, query, data_state, det_id, iteration, exp_id)) {
+    if (!p_psDBRunQueryF(config->dbh, query, data_state, det_id, iteration, exp_id)) {
         psError(PS_ERR_UNKNOWN, false,
                 "failed to change state for det_id %" PRId64 ", iteration %" PRId32 ", exp_id %" PRId64, 
