fix bugs in master

This commit is contained in:
obdev
2023-11-16 14:16:32 +00:00
committed by ob-robot
parent 8a5f223af8
commit 63ee8a5fd4
2 changed files with 4 additions and 4 deletions

View File

@ -2006,7 +2006,7 @@ int ObSqlParameterization::get_related_user_vars(const ParseNode *tree, common::
// do nothing
} else {
if (T_USER_VARIABLE_IDENTIFIER == tree -> type_) {
if (OB_ISNULL(tree -> str_value_) || tree -> str_len_ <= 0) {
if (OB_ISNULL(tree -> str_value_) || tree -> str_len_ < 0) {
ret = OB_INVALID_ARGUMENT;
LOG_WARN("invalid argument", K(ret), K(tree -> str_value_), K(tree -> str_len_));
} else {