Index: trunk/ippTools/src/magicdstool.c
===================================================================
--- trunk/ippTools/src/magicdstool.c	(revision 20973)
+++ trunk/ippTools/src/magicdstool.c	(revision 21402)
@@ -159,5 +159,5 @@
         psFree(where);
 
-        if (!p_psDBRunQuery(config->dbh, query, whereClause)) {
+        if (!p_psDBRunQueryF(config->dbh, query, whereClause)) {
             psError(PS_ERR_UNKNOWN, false, "database error");
             psFree(whereClause);
@@ -215,5 +215,5 @@
 
 
-        if (!p_psDBRunQuery(config->dbh, query, magicSkyCellNumsWhere ? magicSkyCellNumsWhere : "")) {
+        if (!p_psDBRunQueryF(config->dbh, query, magicSkyCellNumsWhere ? magicSkyCellNumsWhere : "")) {
             psError(PS_ERR_UNKNOWN, false, "database error");
             psFree(magicSkyCellNumsWhere);
@@ -298,5 +298,5 @@
         }
 
-        if (!p_psDBRunQuery(config->dbh, thisInsert, magic_id, exp_id)) {
+        if (!p_psDBRunQueryF(config->dbh, thisInsert, magic_id, exp_id)) {
             psError(PS_ERR_UNKNOWN, false, "database error");
             psFree(thisInsert);
@@ -560,5 +560,5 @@
     }
 
-    if (!p_psDBRunQuery(config->dbh, query, magic_id)) {
+    if (!p_psDBRunQueryF(config->dbh, query, magic_id)) {
         psError(PS_ERR_UNKNOWN, false, "database error");
         psFree(query);
@@ -692,5 +692,5 @@
     psFree(where);
 
-    if (!p_psDBRunQuery(config->dbh, query, magic_ds_id)) {
+    if (!p_psDBRunQueryF(config->dbh, query, magic_ds_id)) {
         psError(PS_ERR_UNKNOWN, false, "database error");
         psFree(query);
@@ -749,5 +749,5 @@
 
     char *query = "UPDATE magicDSRun SET state = '%s' WHERE magic_ds_id = %" PRId64;
-    if (!p_psDBRunQuery(config->dbh, query, state, magic_ds_id)) {
+    if (!p_psDBRunQueryF(config->dbh, query, state, magic_ds_id)) {
         psError(PS_ERR_UNKNOWN, false,
                 "failed to change state for magic_id %" PRId64, magic_ds_id);
