[Catalyst] C::M::DBIC::Schema::QyeryLog: can't collect any stats...

Marcello Romani mromani at ottotecnica.com
Wed Sep 19 16:51:00 GMT 2007


Cory Watson ha scritto:
> On 9/19/07, Marcello Romani <mromani at ottotecnica.com> wrote:
>> Do you use it in cat apps on in plain dbic ?
>>
>> Could you provide an example of usage ?
> 
> http://www.onemogin.com/blog/554-profile-your-catalystdbixclass-app-with-querylog.html
> 
> The syntax has changed a bit due to the Analyzer, but you should be
> able to make the leap.
> 

Ok I finally found my mistake.

I was obtaining the queryobject back from the schema like this:

my $ql = $schema->storage->debugobj();

Now, instead, I "manually" store the querylog object, and get it back 
from where I put it, instead of getting it like I showed above.

Now everything works fine.

Thanks again for your time.

-- 
Marcello Romani
Responsabile IT
Ottotecnica s.r.l.
http://www.ottotecnica.com



More information about the Catalyst mailing list