[CP] [to #2024111300105096786] fix: change -4016 to -4007 when PL CG levels overflow

This commit is contained in:
0xacc
2024-11-19 15:18:15 +00:00
committed by ob-robot
parent 1fe8a23ebf
commit 67c805fdf2

View File

@ -390,7 +390,9 @@ public:
exception_stack_.exceptions_[exception_stack_.cur_].raising_block_.reset(); exception_stack_.exceptions_[exception_stack_.cur_].raising_block_.reset();
++exception_stack_.cur_; ++exception_stack_.cur_;
} else { } else {
ret = common::OB_ERR_UNEXPECTED; ret = OB_NOT_SUPPORTED;
PL_LOG(WARN, "max exception block nested level exceeded", K(exception_stack_.cur_));
LOG_USER_ERROR(OB_NOT_SUPPORTED, "exception blocks nested level exceed 64");
} }
return ret; return ret;
} }
@ -435,7 +437,9 @@ public:
label_stack_.labels_[label_stack_.cur_].exit_ = exit; label_stack_.labels_[label_stack_.cur_].exit_ = exit;
++label_stack_.cur_; ++label_stack_.cur_;
} else { } else {
ret = common::OB_ERR_UNEXPECTED; ret = OB_NOT_SUPPORTED;
PL_LOG(WARN, "max label nested level exceeded", K(label_stack_.cur_));
LOG_USER_ERROR(OB_NOT_SUPPORTED, "labels nested level exceeds 64");
} }
return ret; return ret;
} }
@ -486,7 +490,9 @@ public:
loop_stack_.loops_[loop_stack_.cur_].cursor_ = cursor; loop_stack_.loops_[loop_stack_.cur_].cursor_ = cursor;
++loop_stack_.cur_; ++loop_stack_.cur_;
} else { } else {
ret = common::OB_ERR_UNEXPECTED; ret = OB_NOT_SUPPORTED;
PL_LOG(WARN, "max loop nested level exceeded", K(loop_stack_.cur_));
LOG_USER_ERROR(OB_NOT_SUPPORTED, "loops nested level exceed 64");
} }
return ret; return ret;
} }