in reply to Re: How to report call stack for DBI queries
in thread How to report call stack for DBI queries

Proxying doesn't exactly work like that, because DBI creates objects of other classes, and your execute is defined in the wrong class.

There's a section on "subclassing the DBI" on the DBI manpage that lists in careful detail what you have to do. Basically, you'll have to create three classes named similarly to the DBI triad, and then add your execute override to the statement-handle derived class.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: Re: How to report call stack for DBI queries

Replies are listed 'Best First'.
Re: •Re: Re: How to report call stack for DBI queries
by perlplexer (Hermit) on Apr 17, 2003 at 20:56 UTC
    Thanks for pointing that out. I was looking at, apparently, an older version of DBI docs which doesn't have any info on subclassing DBI.

    --perlplexer