Index: trunk/ippTools/src/dettool.c
===================================================================
--- trunk/ippTools/src/dettool.c	(revision 14269)
+++ trunk/ippTools/src/dettool.c	(revision 14270)
@@ -6974,9 +6974,5 @@
     }
 
-    // XXX this is going in without checking that the det_id is valid.
-    // it seems like it be better to be using foreign key constraints rather
-    // then having to resort to a seperate query (and locking) to check that
-    // the det_id is valid
-    if (!detNormalizedImfileInsert(config->dbh,
+    if (!detRegisteredImfileInsert(config->dbh,
                                    (psS64)atoll(det_id),
                                    0,  // the iteration is fixed at 0
