0

I experience some weird results on certain queries to an SQLite database. Therefore I'd like to see the real query sent to the database. I'm using PDO, and the closest I can get is

$statement->debugDumpParams();

but this is just an abstract representation, not the final query.

Is there any way to see, what's actually sent to the db driver? There seems to be a C interface trace(), but as far as I can tell, I have no means of accessing it from within PHP.

Boldewyn
  • 81,211
  • 44
  • 156
  • 212

0 Answers0