Index: trunk/ippTools/src/chiptool.c
===================================================================
--- trunk/ippTools/src/chiptool.c	(revision 19592)
+++ trunk/ippTools/src/chiptool.c	(revision 19701)
@@ -1112,10 +1112,8 @@
     }
     psFree(query);
-
-    // XXX Comment copied from addpendingimfile
-    // I've decided to make the transaction cover the Exp migration as
-    // well.  Otherwise, if the last imfile in an exp is moved and the exp
-    // migration fails then the data base is left in a situation where the exp
-    // migration can't happen.
+    if (psDBAffectedRows(config->dbh) < 1) {
+        psError(PS_ERR_UNKNOWN, false, "should have affected atleast 1 row");
+        return false;
+    }
 
     query = pxDataGet("chiptool_change_exp_state.sql");
