logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Getting SQL string from PreparedStatement: msg#00004

Subject: Re: Getting SQL string from PreparedStatement
Is this for debugging? If so print_r($myPrepStmt) should work fine. Also the phpdoc for the prepared statement should give you how you might access the attribute.

--Tony

Cody Caughlan wrote:
Is there no way to retrieve the SQL that was executed from a PreparedStatement? Even if it isnt the actual SQL but contains the bound qualifiers (e.g. "?" or ":id", etc) its OK, as long as the body of the statement itself is available.

The docs for PreparedStatement list no method along the lines of getSQL(), so I am thinking this is not possible, but you never know...

Thanks
/Cody

---------------------------------------------------------------------
To unsubscribe, e-mail: 
users-unsubscribe-IxL5lNO0W+8WBrYXtHbyV9i2O/JbrIOy@xxxxxxxxxxxxxxxx
For additional commands, e-mail: 
users-help-IxL5lNO0W+8WBrYXtHbyV9i2O/JbrIOy@xxxxxxxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>