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
Basic SELECT support for Decimal38
This commit is contained in:
committed by
Roman Nozdrin
parent
63dcaa387f
commit
77e1d6abe3
@ -456,13 +456,12 @@ uint8_t WE_DDLCommandProc::writeCreateSyscolumn(ByteStream& bs, std::string& err
|
||||
if (dataType == CalpontSystemCatalog::DECIMAL ||
|
||||
dataType == CalpontSystemCatalog::UDECIMAL)
|
||||
{
|
||||
if (colDefPtr->fType->fPrecision > 18) //@Bug 5717 precision cannot be over 18.
|
||||
// WIP MCOL-641
|
||||
if (colDefPtr->fType->fPrecision > 38) // precision cannot be over 38.
|
||||
{
|
||||
// WIP MCOL-641
|
||||
//ostringstream os;
|
||||
//os << "Syntax error: The maximum precision (total number of digits) that can be specified is 18";
|
||||
//throw std::runtime_error(os.str());
|
||||
colDefPtr->convertDecimal();
|
||||
ostringstream os;
|
||||
os << "Syntax error: The maximum precision (total number of digits) that can be specified is 38";
|
||||
throw std::runtime_error(os.str());
|
||||
}
|
||||
else if (colDefPtr->fType->fPrecision < colDefPtr->fType->fScale)
|
||||
{
|
||||
|
Reference in New Issue
Block a user