Set sql_mode to 'NO_BACKSLASH_ESCAPES', changing escape to 0.

This commit is contained in:
qingsuijiu
2024-03-07 10:55:11 +00:00
committed by ob-robot
parent ceaee4bfc4
commit d660015ed5

View File

@ -464,7 +464,7 @@ int ObExprLike::calc_escape_wc(const ObCollationType escape_coll,
size_t length = ObCharset::strlen_char(escape_coll, escape.ptr(),
escape.length());
if (0 == length) {
escape_wc = -1;
escape_wc = 0;
} else if (1 != length) {
ret = OB_INVALID_ARGUMENT;
LOG_WARN("invalid argument to ESCAPE", K(escape), K(length), K(ret));