Index: trunk/ippTools/src/dettool.c
===================================================================
--- trunk/ippTools/src/dettool.c	(revision 7513)
+++ trunk/ippTools/src/dettool.c	(revision 7600)
@@ -164,5 +164,6 @@
     // grab the 'position' column's value as the new det_id
     // the first iteration is always 0
-    detRunInsert(config->dbh, det_type, 0);
+    // XXX the camera name is set from the first inputExp
+    detRunInsert(config->dbh, 0, det_type);
     long det_id = psDBLastInsertID(config->dbh);
 
