puppetlabs/puppetdb — pull request #202 by nicklewis (2012-07-05 23:51:59+00:00)
Title: Rewrite node query compiler

This makes the code much more similar for the two types of queries, and probably also much faster for complex queries. Right now that means a lot of duplication, but hopefully it will allow for future unification into a single query API.

Also, fixed several bugs around using non-strings for query values. Now, equality comparisons will coerce their arguments to strings, and numeric inequalities will coerce them to numbers, failing if that's not possible.