You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-98: Added error message for functions returning out of range values.
This commit is contained in:
@ -497,7 +497,7 @@ double Func_cot::getDoubleVal(Row& row,
|
||||
Message::Args args;
|
||||
args.add("cot");
|
||||
args.add(value);
|
||||
unsigned errcode = ERR_INCORRECT_VALUE;
|
||||
unsigned errcode = ERR_FUNC_OUT_OF_RANGE_RESULT;
|
||||
throw IDBExcept(IDBErrorInfo::instance()->errorMsg(errcode, args), errcode);
|
||||
}
|
||||
if (isNull)
|
||||
@ -518,7 +518,7 @@ double Func_cot::getDoubleVal(Row& row,
|
||||
Message::Args args;
|
||||
args.add("cot");
|
||||
args.add(value);
|
||||
unsigned errcode = ERR_INCORRECT_VALUE;
|
||||
unsigned errcode = ERR_FUNC_OUT_OF_RANGE_RESULT;
|
||||
throw IDBExcept(IDBErrorInfo::instance()->errorMsg(errcode, args), errcode);
|
||||
}
|
||||
|
||||
@ -540,7 +540,7 @@ double Func_cot::getDoubleVal(Row& row,
|
||||
Message::Args args;
|
||||
args.add("cot");
|
||||
args.add((uint64_t)value);
|
||||
unsigned errcode = ERR_INCORRECT_VALUE;
|
||||
unsigned errcode = ERR_FUNC_OUT_OF_RANGE_RESULT;
|
||||
throw IDBExcept(IDBErrorInfo::instance()->errorMsg(errcode, args), errcode);
|
||||
}
|
||||
if (isNull)
|
||||
|
Reference in New Issue
Block a user