From 8f3215ded201a7fc31e0abdbf506112d96da6d90 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Mon, 3 Sep 2012 15:12:27 +0000 Subject: [PATCH] resolved #79364 --- lib/DBD/SQLite.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DBD/SQLite.pm b/lib/DBD/SQLite.pm index b7842bd..deafc16 100644 --- a/lib/DBD/SQLite.pm +++ b/lib/DBD/SQLite.pm @@ -1522,7 +1522,7 @@ Here is a simple aggregate function which returns the variance my $sigma = 0; foreach my $v ( @$self ) { - $sigma += ($x - $mu)**2; + $sigma += ($v - $mu)**2; } $sigma = $sigma / ($n - 1);