Re: Pear DO: appending comments to queries
| From: | Justin Patrin | Date: | Wed, 08 Mar 2006 01:20:05 +0000 |
| Subject: | Re: Pear DO: appending comments to queries | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23237@lists.php.net to get a copy of this message | ||
On 3/7/06, Sasha Sklar <spyrral@gmail.com> wrote:
> I'm looking for a systematic way to append sql comments to my queries
> that I construct with the DO methods, so we can see which script they
> are coming from when viewing them in our logs.
>
Perhaps:
class Extended_DO extends DB_DataObject {
function update() {
$do->_query['order_by'] .= ' --
'.$_SERVER['REQUEST_URI']."\n";
}
}
--
Justin Patrin