     AND (?2 = '' OR local_relpath = ?2 OR local_relpath LIKE ?3 ESCAPE '#')
     AND local_relpath NOT IN (
       SELECT local_relpath FROM actual_node WHERE wc_id = ?1)
-    AND (presence = 'normal' OR presence = 'incomplete')
+    AND presence IN ('normal', 'incomplete')
 /* ###  Need index?
 CREATE UNIQUE INDEX temp__node_props_cache_unique
   ON temp__node_props_cache (local_relpath) */

SELECT local_relpath, kind FROM nodes_current
WHERE wc_id = ?1
  AND (?2 = '' OR local_relpath = ?2 OR local_relpath LIKE ?3 ESCAPE '#')
  AND (presence = 'normal' OR presence = 'incomplete')
  AND file_external IS NULL

/* Grab all the statements related to the schema.  */

       MIN(changed_revision), MAX(changed_revision) FROM nodes
  WHERE wc_id = ?1
  AND (local_relpath = ?2 OR local_relpath LIKE ?3 ESCAPE '#')
  AND presence IN ('normal', 'incomplete')
  AND file_external IS NULL
  AND op_depth = 0

