1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-09-02 12:41:17 +03:00

MCOL-979 getNullValueByType() should return string for all char types

This commit is contained in:
David Hall
2017-10-26 10:52:10 -05:00
parent a8414b9a8f
commit 5ab75385b0

View File

@@ -496,7 +496,8 @@ void* WindowFunctionType::getNullValueByType(int ct, int pos)
break;
case CalpontSystemCatalog::CHAR:
case CalpontSystemCatalog::VARCHAR: {
uint64_t len = fRow.getColumnWidth(pos);
// uint64_t len = fRow.getColumnWidth(pos);
#if 0
switch (len) {
case 1:
v = &char1Null;
@@ -514,10 +515,12 @@ void* WindowFunctionType::getNullValueByType(int ct, int pos)
case 8:
v = &char8Null;
break;
default:
default:
v = &stringNull;
break;
}
#endif
v = &stringNull;
break;
}
case CalpontSystemCatalog::DECIMAL: