to issue<49845698>:fix pdml with udf report 6220

This commit is contained in:
hanr881
2023-05-23 05:17:26 +00:00
committed by ob-robot
parent 54fbf31d94
commit 59591c9ea2
10 changed files with 50 additions and 28 deletions

View File

@ -580,7 +580,8 @@ public:
tz_info_(NULL),
res_map_rule_id_(common::OB_INVALID_ID),
res_map_rule_param_idx_(common::OB_INVALID_INDEX),
root_stmt_(NULL)
root_stmt_(NULL),
udf_has_select_stmt_(false)
{
}
TO_STRING_KV(N_PARAM_NUM, question_marks_count_,
@ -620,6 +621,7 @@ public:
res_map_rule_id_ = common::OB_INVALID_ID;
res_map_rule_param_idx_ = common::OB_INVALID_INDEX;
root_stmt_ = NULL;
udf_has_select_stmt_ = false;
}
int64_t get_new_stmt_id() { return stmt_count_++; }
@ -695,6 +697,7 @@ public:
uint64_t res_map_rule_id_;
int64_t res_map_rule_param_idx_;
ObDMLStmt *root_stmt_;
bool udf_has_select_stmt_; // udf has select stmt, not contain other dml stmt
};
} /* ns sql*/
} /* ns oceanbase */