1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-07 03:22:57 +03:00

MCOL-1822 colWidth should be sizeof(long double), not hardcoded 16

This commit is contained in:
David Hall
2019-03-05 09:49:11 -06:00
parent b7606139d7
commit 0ea4ccfe06
3 changed files with 5 additions and 5 deletions

View File

@@ -4499,7 +4499,7 @@ ReturnedColumn* buildAggregateColumn(Item* item, gp_walk_info& gwi)
{
CalpontSystemCatalog::ColType ct = parm->resultType();
ct.colDataType = CalpontSystemCatalog::LONGDOUBLE;
ct.colWidth = 16;
ct.colWidth = sizeof(long double);
ct.scale += 4;
ct.precision = -1;
ac->resultType(ct);
@@ -4518,7 +4518,7 @@ ReturnedColumn* buildAggregateColumn(Item* item, gp_walk_info& gwi)
{
CalpontSystemCatalog::ColType ct = parm->resultType();
ct.colDataType = CalpontSystemCatalog::LONGDOUBLE;
ct.colWidth = 16;
ct.colWidth = sizeof(long double);
ct.precision = -1;
ac->resultType(ct);
}