CC: | goneri [...] rulezlan.org |
Subject: | typo in the documentation |
Date: | Thu, 20 Dec 2007 21:04:03 +0100 |
To: | bug-DBIx-Class-QueryLog [...] rt.cpan.org |
From: | Gonéri Le Bouder <goneri [...] rulezlan.org> |
Hi,
Thank you for this module. There is a little mistake in the
documentation:
$ diff -u ./lib/DBIx/Class/QueryLog/Analyzer.pm.orig ./lib/DBIx/Class/QueryLog/Analyzer.pm
--- ./lib/DBIx/Class/QueryLog/Analyzer.pm.orig 2007-12-20 20:02:27.000000000 +0100
+++ ./lib/DBIx/Class/QueryLog/Analyzer.pm 2007-12-20 20:02:34.000000000 +0100
@@ -20,7 +20,7 @@
$schema->storage->debugobj($ql);
$schema->storage->debug(1);
... # do some stuff!
- my $ana = DBIx::Class::QueryLog::Analyzer({ querylog => $ql });
+ my $ana = new DBIx::Class::QueryLog::Analyzer({ querylog => $ql });
my @queries = $ana->get_sorted_queries();
# or...
my $totaled = $ana->get_totaled_queries();
Cheers,
Gonéri
Message body not shown because it is not plain text.