#39287 [Com]: PDO: Get last executed query
ID: 39287
Comment by: fcardinaux at gmail dot com
Reported By: waax at yahoo dot com
Status: Open
Bug Type: Feature/Change Request
PHP Version: 5.1.6
New Comment:
Such a feature would be useful for profiling as well.
The software profiler I use transforms each SELECT statement into an
EXPLAIN SELECT, which cannot work unless the parameters are replaced by
the values used when the query is executed.
Previous Comments:
------------------------------------------------------------------------
[2006-10-28 03:26:53] waax at yahoo dot com
Description:
------------
Getting the last executed query would be helpful for debugging.
Something like:
<?php
$stmt->execute();
print $stmt->getLastQuery();
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39287&edit=1
Thread (2 messages)