The sql_debug compiler flag allows us to debug the generated SQL queries, but when using the PHP target (i.e. the PDO driver), for most SELECT queries, nothing is traced.
It seems that these queries go through the syncResult method instead of the run method, but the syncResult method does not have any tracing statement.
The
sql_debug
compiler flag allows us to debug the generated SQL queries, but when using the PHP target (i.e. the PDO driver), for mostSELECT
queries, nothing is traced.It seems that these queries go through the
syncResult
method instead of therun
method, but thesyncResult
method does not have any tracing statement.