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:
parent
876474633f
commit
cb5fdd0a08
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue