1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

DBD-SQLite: switched from func() to installed method and noted for the users of an older DBI

This commit is contained in:
Kenichi Ishigaki 2009-05-06 12:33:53 +00:00
parent 876474633f
commit cb5fdd0a08

View file

@ -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: