-
Notifications
You must be signed in to change notification settings - Fork 0
/
lib_mysqludf_stat.sql
31 lines (27 loc) · 1.44 KB
/
lib_mysqludf_stat.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
lib_mysqludf_statistics - a library of mysql udfs statistical functions
Copyright (C) 2007 Roland Bouman
web: http://www.xcdsql.org/MySQL/UDF/
email: [email protected]
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
drop function lib_mysqludf_stat_info;
drop function stat_accum_int;
drop function stat_accum_double;
drop function stat_pmcc_samp;
drop function stat_ptbis_samp;
create function lib_mysqludf_stat_info returns string soname 'lib_mysqludf_stat.so';
create function stat_accum_int returns int soname 'lib_mysqludf_stat.so';
create function stat_accum_double returns real soname 'lib_mysqludf_stat.so';
create aggregate function stat_pmcc_samp returns real soname 'lib_mysqludf_stat.so';
create aggregate function stat_ptbis_samp returns real soname 'lib_mysqludf_stat.so';