You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
Revert "MCOL-3518 Set number of decimals for regr_avgx and regr_avgy in init."
This reverts commit c5cc5f20c9
.
This commit is contained in:
@ -167,10 +167,14 @@ extern "C"
|
|||||||
strcpy(message,"regr_avgx() with a non-numeric independant (second) argument");
|
strcpy(message,"regr_avgx() with a non-numeric independant (second) argument");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (initid->decimals != DECIMAL_NOT_SPECIFIED)
|
if (args->arg_type[1] == DECIMAL_RESULT && initid->decimals != DECIMAL_NOT_SPECIFIED)
|
||||||
{
|
{
|
||||||
initid->decimals += 4;
|
initid->decimals += 4;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
initid->decimals = DECIMAL_NOT_SPECIFIED;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(data = (struct regr_avgx_data*) malloc(sizeof(struct regr_avgx_data))))
|
if (!(data = (struct regr_avgx_data*) malloc(sizeof(struct regr_avgx_data))))
|
||||||
{
|
{
|
||||||
@ -271,10 +275,14 @@ extern "C"
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (initid->decimals != DECIMAL_NOT_SPECIFIED)
|
if (args->arg_type[0] == DECIMAL_RESULT && initid->decimals != DECIMAL_NOT_SPECIFIED)
|
||||||
{
|
{
|
||||||
initid->decimals += 4;
|
initid->decimals += 4;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
initid->decimals = DECIMAL_NOT_SPECIFIED;
|
||||||
|
}
|
||||||
|
|
||||||
if (!(data = (struct regr_avgy_data*) malloc(sizeof(struct regr_avgy_data))))
|
if (!(data = (struct regr_avgy_data*) malloc(sizeof(struct regr_avgy_data))))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user