开发者

Can you show which items are bound to a PDO statement?

开发者 https://www.devze.com 2023-03-24 05:24 出处:网络
Using PHP, MySQL, PDO For logging/debug purposes,I would like to be able to log which sql query ran, is it possible to get this value with all the bound results attached to it?

Using PHP, MySQL, PDO

For logging/debug purposes, I would like to be able to log which sql query ran, is it possible to get this value with all the bound results attached to it?

I saw PDOStatement->debugDumpParams but it do开发者_运维问答es not seem to give the values that are bound.


First of all: the query (unless emulated) does not exist. It never got there as a raw query, hence the safety of it all. The best you can hope for is usually debugDumpParams

0

精彩评论

暂无评论...
验证码 换一张
取 消