zendframework/zf2 — pull request #2989 by Slamdunk (2012-11-16 15:45:19+00:00)
Title: Decouple Zend\Db\Sql from concrete Zend\Db\Adapter implementations

By typehinting only interfaces we can fully decouple `Zend\Db\Sql` from concrete `Zend\Db\Adapter\Adapter` implementation.

As you can see in the diff, I've changed no test, expect two protected-method tests, so there is no breaks.

I consider `Zend\Db\Sql` a good sql builder, and in order to use it with non-zend adapter, like Doctrine2, we need to provide only interface dependancies.