Add T_UINT64 type check for limit expr resolve

This commit is contained in:
obdev
2023-05-29 09:41:46 +00:00
committed by ob-robot
parent 4a1fd9bda8
commit 4967959499

View File

@ -6349,8 +6349,8 @@ int ObDMLResolver::resolve_limit_clause(const ParseNode *node)
}
} else {
if (limit_node != NULL) {
if (limit_node->type_ != T_QUESTIONMARK && limit_node->type_ != T_INT
&& limit_node->type_ != T_COLUMN_REF) {
if (limit_node->type_ != T_INT && limit_node->type_ != T_UINT64
&& limit_node->type_ != T_QUESTIONMARK && limit_node->type_ != T_COLUMN_REF) {
ret = OB_ERR_RESOLVE_SQL;
LOG_WARN("Wrong type of limit value");
} else {