1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-06-12 05:01:56 +03:00

Also check for zero

Needed for unsigned int columns
This commit is contained in:
Andrew Hutchings
2017-01-18 17:35:59 +00:00
parent 183298ba50
commit aa2cb8b9ba

View File

@ -1838,6 +1838,12 @@ void AlterTableProcessor::tableComment(uint32_t sessionID, execplan::CalpontSyst
{
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
{