[CP] Improve incorrect value error info for insert/replace into values

This commit is contained in:
obdev
2023-08-25 06:10:27 +00:00
committed by ob-robot
parent f78f3aa8a3
commit 233189cbb1
12 changed files with 114 additions and 64 deletions

View File

@ -2308,10 +2308,10 @@ static const _error _error_OB_ERR_TRUNCATED_WRONG_VALUE_FOR_FIELD = {
.mysql_errno = ER_TRUNCATED_WRONG_VALUE_FOR_FIELD,
.sqlstate = "HY000",
.str_error = "Incorrect integer value",
.str_user_error = "Incorrect integer value: '%.*s'",
.str_user_error = "Incorrect integer value for column '%.*s' at row %ld",
.oracle_errno = 600,
.oracle_str_error = "ORA-00600: internal error code, arguments: -4226, Incorrect integer value",
.oracle_str_user_error = "ORA-00600: internal error code, arguments: -4226, Incorrect integer value: '%.*s'"
.oracle_str_user_error = "ORA-00600: internal error code, arguments: -4226, Incorrect integer value for column '%.*s' at row %ld"
};
static const _error _error_OB_ERR_NO_DEFAULT_FOR_FIELD = {
.error_name = "OB_ERR_NO_DEFAULT_FOR_FIELD",