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-3741 Change IDB-xxxx error codes to MCS-xxxx
This commit is contained in:
@ -1397,7 +1397,7 @@ uint32_t doUpdateDelete(THD* thd, gp_walk_info& gwi, const std::vector<COND*>& c
|
||||
// avoid double set IDB error
|
||||
string emsg;
|
||||
|
||||
if (gwi.parseErrorText.find("IDB-") == string::npos)
|
||||
if (gwi.parseErrorText.find("MCS-") == string::npos)
|
||||
{
|
||||
Message::Args args;
|
||||
args.add(gwi.parseErrorText);
|
||||
|
@ -210,7 +210,7 @@ string IDBErrorInfo::lookupError(const unsigned eid)
|
||||
msgstr = iter->second;
|
||||
|
||||
ostringstream oss;
|
||||
oss << "IDB-" << setw(4) << setfill('0') << eid << ": " << msgstr;
|
||||
oss << "MCS-" << setw(4) << setfill('0') << eid << ": " << msgstr;
|
||||
return oss.str();
|
||||
}
|
||||
|
||||
|
@ -260,7 +260,7 @@ IDB_Decimal MCS_add::getDecimalVal(Row& row,
|
||||
/**
|
||||
* This API should never be called for MCS_add, because the latter
|
||||
* is not for date/datetime values addition. In such case, one can
|
||||
* either not implement this API and an IDB-5001 error will be thrown,
|
||||
* either not implement this API and an MCS5001 error will be thrown,
|
||||
* or throw a customized exception here.
|
||||
*/
|
||||
int32_t MCS_add::getDateIntVal(Row& row,
|
||||
@ -274,7 +274,7 @@ int32_t MCS_add::getDateIntVal(Row& row,
|
||||
/**
|
||||
* This API should never be called for MCS_add, because the latter
|
||||
* is not for date/datetime values addition. In such case, one can
|
||||
* either not implement this API and an IDB-5001 error will be thrown,
|
||||
* either not implement this API and an MCS-5001 error will be thrown,
|
||||
* or throw a customized exception here.
|
||||
*/
|
||||
int64_t MCS_add::getDatetimeIntVal(Row& row,
|
||||
|
@ -99,7 +99,7 @@ private:
|
||||
* getIntVal() will be called, because MCS_add() is passed as the third argument
|
||||
* to substr function, and an integer result is expected.
|
||||
*
|
||||
* If one API is not implemented but called for a function, IDB-5001 error will
|
||||
* If one API is not implemented but called for a function, MCS-5001 error will
|
||||
* be returned.
|
||||
*/
|
||||
class MCS_add : public funcexp::Func
|
||||
|
Reference in New Issue
Block a user