felixge/node-mysql — pull request #358 by grncdr (2012-12-13 08:20:56+00:00)
Title: Accept prebuilt Query object in connection.query

This allows support code to construct a Query instance to be used with
a connection made available in the future.

My use case is making this [ConnectionPool.query](https://github.com/grncdr/node-any-db/blob/ebee211f4f068f80bde199182124cae3fc1770f5/lib/connection-pool.js#L55) method from any-db work directly with mysql `Query` instances rather than having to wrap them in an adapter (how it works now). By allowing a connection to execute an existing Query instance, we can return the user a query result object synchronously, meaning the user never needs to know about the internals of the connection pool.