puppetlabs/puppetdb — pull request #1178 by senior (2014-12-10 22:01:54+00:00)
Title: (PDB-1064) Fixed a bug in extract with 2 element expressions

Previously the query engine would fail if a top-level extract's
expression had only two elements (i.e. ["not" ["=" "certname"
"foo.com]]). This commit adds a guard to the extracts used for nested
queries to ensure it doesn't catch the two clause version of top-level
extract.