PDOStatement get SQL after all bindings apply [duplicate]
Possible Duplicates:
Getting a PDO query string with bound parameters without executing it PDO Prepared Statements
Hi,
I would like to get a full query from PDOStatement
, however I only found the $queryString
property which seems to contain merely the original string without the bindings applied. I could iterate through the bindings and replace it myself, however I'd like to get the sql this class is working with i开发者_StackOverflow社区nternally. Is this possible somehow? Thanks
精彩评论