Leonid Fedorov
56f2346083
Remove windows ifdefs
2023-03-02 15:59:42 +00:00
Leonid Fedorov
3919c541ac
New warnfixes ( #2254 )
...
* Fix clang warnings
* Remove vim tab guides
* initialize variables
* 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length
* Fix ISO C++17 does not allow 'register' storage class specifier for outdated bison
* chars are unsigned on ARM, having if (ival < 0) always false
* chars are unsigned by default on ARM and comparison with -1 if always true
2022-02-17 13:08:58 +03:00
Leonid Fedorov
04752ec546
clang format apply
2022-01-21 16:43:49 +00:00
Leonid Fedorov
5c5f103f98
MCOL-4839: Fix clang build ( #2100 )
...
* Fix clang build
* Extern C returned to plugin_instance
Co-authored-by: Leonid Fedorov <l.fedorov@mail.corp.ru>
2021-08-23 10:45:10 -05:00
David Hall
af20387985
MCOL-4516 check for var_pop < 0
...
In some cases, because of rounding error, var_pop will evaluate to some value just less than 0. We check for this and force to round to 0.
2021-03-09 13:36:10 -06:00
David Hall
788d5b4abc
Revert "Revert "MCOL-3518 Set number of decimals for regr_avgx and regr_avgy in init.""
...
This reverts commit d0bb6fddbcb50fd0e9cc49a4784b386a117a405a.
2019-10-16 10:16:42 -05:00
David Hall
d0bb6fddbc
Revert "MCOL-3518 Set number of decimals for regr_avgx and regr_avgy in init."
...
This reverts commit c5cc5f20c969b957f48f0a1420d5bab216c62c1f.
2019-10-16 10:08:47 -05:00
David Hall
c5cc5f20c9
MCOL-3518 Set number of decimals for regr_avgx and regr_avgy in init.
2019-10-16 09:42:25 -05:00
David Hall
2b9f54d682
MCOL-1985 Server set decimal count for UDF based on both parameters. This doesn't work for regr_avgx and regr_avgy, which only care about one of them. Do our best to handle it reasonably. Still gives unlimited decimals for InnoDB when the unused parameter is not numeric.
2019-04-23 15:41:20 -05:00
David Hall
b38f192e2e
MCOL-1985 Don't change umber of decimals if DECIMAL_NOT_SPECIFIED
2019-04-18 13:31:16 -05:00
David Hall
c17e32d5e0
MCOL-1985 Modify regrmysql to use long double where practical and to use the latest algorithms for regr_xxx functions.
2019-04-15 16:36:27 -05:00
David Hall
eb75d3cd7e
MCOL-1983 Reject non-numeric arguments for regr_*** functions that require numeric
2019-01-02 10:31:53 -06:00
David Hall
9c1bc910a5
MCOL-1793, fix REGR_SLOPE calculations, change scale to DECIMAL_NOT_SPECIFIED (variable length) for most REGR_*** functions.
2018-11-20 16:29:17 -06:00
David Hall
e1d8211f27
MCOL-1759 Add corr(), covar_pop(), covar_samp(), regr_sxx(), regr_sxy(), regr_syy() functions as UDAF
2018-10-09 17:06:01 -05:00
David Hall
dc9ba90f96
MCOL-521 add regr_intecept and regr_r2
2018-09-28 13:51:43 -05:00
David Hall
d930a1e322
MCOL-521 Some more fixes for multi-parm aggregates. Add regr slope
2018-09-25 16:31:10 -05:00
David Hall
94455246a1
MCOL-521 Move regr functions to their own directrory
2018-08-16 11:56:48 -05:00