You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-06-13 16:01:32 +03:00
Also check for zero
Needed for unsigned int columns
This commit is contained in:
@ -1838,6 +1838,12 @@ void AlterTableProcessor::tableComment(uint32_t sessionID, execplan::CalpontSyst
|
|||||||
{
|
{
|
||||||
throw std::runtime_error(IDBErrorInfo::instance()->errorMsg(ERR_INVALID_START_VALUE));
|
throw std::runtime_error(IDBErrorInfo::instance()->errorMsg(ERR_INVALID_START_VALUE));
|
||||||
}
|
}
|
||||||
|
// Checks if zero and throws appropriate error (despite message name)
|
||||||
|
// negative checks are below
|
||||||
|
if (nextVal == 0)
|
||||||
|
{
|
||||||
|
throw std::runtime_error(IDBErrorInfo::instance()->errorMsg(ERR_NEGATIVE_STARTVALUE));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user