zendframework/zf2 — pull request #4096 by stoyandimov (2013-03-22 17:45:33+00:00)
Title: Hotfix/db profiler executed sql

Hi,

The current Db adapter profiler return array profiles that include 'sql' key. The value of this key is the Sql statement. However, the sql statements are sometimes displayed with the placeholders instead of the binded values.

I edited a bit \Zend\Db\Adapter\Profiler\Profiler::profilerStart() and now the arrays returned by \Zend\Db\Adapter\Profiler\Profiler::getProfiles() has an extra key 'executed_sql' with value of the populated sql statement including the binded parameters (if any).