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
MCOL-641 PoC version for DECIMAL(38) using BINARY as a basis.
This commit is contained in:
@ -801,7 +801,14 @@ int fetchNextRow(uchar* buf, cal_table_info& ti, cal_connection_info* ci, bool h
|
||||
case CalpontSystemCatalog::DECIMAL:
|
||||
case CalpontSystemCatalog::UDECIMAL:
|
||||
{
|
||||
intColVal = row.getIntField(s);
|
||||
if (row.getPrecision(s) > 18)
|
||||
{
|
||||
sscanf(row.getBinaryField(s).c_str(), "%ld",&intColVal);
|
||||
}
|
||||
else
|
||||
{
|
||||
intColVal = row.getIntField(s);
|
||||
}
|
||||
storeNumericField(f, intColVal, colType);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user