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
bug(priproc) make last_day type a bit more accurate
This fixes discrepance with the server, which assigns DATE type to last_day()'s result. Now we also assigns DATE result type and, also, use proper dataconvert::Day data structure to return date. Tests agree with InnoDB. Also, this patch includes test for MCOL-5669, to show we fixed it.
This commit is contained in:
committed by
Sergey Zefirov
parent
7b0a04270f
commit
a1e64d4cb0
@ -4388,6 +4388,13 @@ ReturnedColumn* buildFunctionColumn(Item_func* ifp, gp_walk_info& gwi, bool& non
|
||||
ct.colWidth = 8;
|
||||
fc->resultType(ct);
|
||||
}
|
||||
if (funcName == "last_day")
|
||||
{
|
||||
CalpontSystemCatalog::ColType ct;
|
||||
ct.colDataType = CalpontSystemCatalog::DATE;
|
||||
ct.colWidth = 4;
|
||||
fc->resultType(ct);
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
|
Reference in New Issue
Block a user