Fix two errorcode related bugs: issue 46899782 and issue 45900041

This commit is contained in:
obdev
2023-07-20 01:42:10 +00:00
committed by ob-robot
parent b4eaec0f1c
commit fff9fe9da3
4 changed files with 12 additions and 4 deletions

View File

@ -938,7 +938,7 @@ static const _error _error_OB_DIVISION_BY_ZERO = {
.error_cause = "Internal Error",
.error_solution = "Contact OceanBase Support",
.mysql_errno = ER_DIVISION_BY_ZERO,
.sqlstate = "42000",
.sqlstate = "22012",
.str_error = "Divided by zero",
.str_user_error = "Divided by zero",
.oracle_errno = 600,