Index: trunk/ippTools/src/pzgetimfiles.c
===================================================================
--- trunk/ippTools/src/pzgetimfiles.c	(revision 20813)
+++ trunk/ippTools/src/pzgetimfiles.c	(revision 21402)
@@ -101,5 +101,5 @@
     if (status != 0) {
         // mark the summitExp row as faulted
-        if (!p_psDBRunQuery(config->dbh, "UPDATE summitExp SET fault = %d WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", WEXITSTATUS(status), filesetid, camera, telescope)) {
+        if (!p_psDBRunQueryF(config->dbh, "UPDATE summitExp SET fault = %d WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", WEXITSTATUS(status), filesetid, camera, telescope)) {
             psError(PS_ERR_UNKNOWN, false, "database error");
         }
@@ -117,5 +117,5 @@
         // download an "empty" fileset.
         // mark the summitExp row as faulted
-        if (!p_psDBRunQuery(config->dbh, "UPDATE summitExp SET fault = %d WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", 250, filesetid, camera, telescope)) {
+        if (!p_psDBRunQueryF(config->dbh, "UPDATE summitExp SET fault = %d WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", 250, filesetid, camera, telescope)) {
                 psError(PS_ERR_UNKNOWN, false, "database error");
         }
@@ -145,5 +145,5 @@
             " AND camera = '%s'"
             " AND telescope = '%s'";
-        if (!p_psDBRunQuery(config->dbh, query, imfiles, filesetid, camera, telescope)) {
+        if (!p_psDBRunQueryF(config->dbh, query, imfiles, filesetid, camera, telescope)) {
             // rollback
             if (!psDBRollback(config->dbh)) {
@@ -162,5 +162,5 @@
                 "   AND camera = '%s'"
                 "   AND telescope = '%s'";
-            if (!p_psDBRunQuery(config->dbh, query, filesetid, camera, telescope)) {
+            if (!p_psDBRunQueryF(config->dbh, query, filesetid, camera, telescope)) {
                 // rollback
                 if (!psDBRollback(config->dbh)) {
@@ -281,5 +281,5 @@
             "   AND telescope = '%s'"
             "   AND imfiles IS NULL";
-        if (!p_psDBRunQuery(config->dbh, query, filesetid, camera, telescope, filesetid, camera, telescope)) {
+        if (!p_psDBRunQueryF(config->dbh, query, filesetid, camera, telescope, filesetid, camera, telescope)) {
             // rollback
             if (!psDBRollback(config->dbh)) {
