Index: /trunk/ippTools/src/pzgetimfiles.c
===================================================================
--- /trunk/ippTools/src/pzgetimfiles.c	(revision 17653)
+++ /trunk/ippTools/src/pzgetimfiles.c	(revision 17654)
@@ -95,5 +95,5 @@
     if (exitStatus != 0) {
         // mark the summitExp row as faulted
-        if (!p_psDBRunQuery(config->dbh, "UPDATE summitExp SET fault = %s WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", exitStatus, filesetid, camera, telescope)) {
+        if (!p_psDBRunQuery(config->dbh, "UPDATE summitExp SET fault = %d WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", exitStatus, filesetid, camera, telescope)) {
             psError(PS_ERR_UNKNOWN, false, "database error");
         }
