Index: trunk/ippTools/src/dettool.c
===================================================================
--- trunk/ippTools/src/dettool.c	(revision 8364)
+++ trunk/ippTools/src/dettool.c	(revision 8365)
@@ -1789,11 +1789,9 @@
         );
 
-#if 0
     if (config->where) {
-        psString whereClaus = psDBGenerateWhereConditionSQL(config->where);
+        psString whereClaus = psDBGenerateWhereConditionSQL(config->where, "detStackedImfile");
         psStringAppend(&query, " AND %s", whereClaus);
         psFree(whereClaus);
     }
-#endif
 
     if (!p_psDBRunQuery(config->dbh, query)) {
