开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜