From cb5fdd0a088ba5a867f26f86b8aea283d6ab1b78 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Wed, 6 May 2009 12:33:53 +0000 Subject: [PATCH] DBD-SQLite: switched from func() to installed method and noted for the users of an older DBI --- lib/DBD/SQLite/Cookbook.pod | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/DBD/SQLite/Cookbook.pod b/lib/DBD/SQLite/Cookbook.pod index f936aea..bdf6260 100644 --- a/lib/DBD/SQLite/Cookbook.pod +++ b/lib/DBD/SQLite/Cookbook.pod @@ -47,7 +47,9 @@ adapted from an example implementation in pysqlite. return $sigma; } - $dbh->func( "variance", 1, 'variance', "create_aggregate" ); + # NOTE: If you use an older DBI (< 1.608), + # use $dbh->func(..., "create_aggregate") instead. + $dbh->sqlite_create_aggregate( "variance", 1, 'variance' ); The function can then be used as: