[CP] Fix ps execute location leader not exist not retry

This commit is contained in:
obdev
2022-05-05 14:17:52 +08:00
committed by wangzelin.wzl
parent e2a21af4f1
commit 1da9b5316b
3 changed files with 11 additions and 4 deletions

View File

@ -222,6 +222,11 @@ public:
stmt_type == stmt::T_EXPLAIN || is_show_stmt(stmt_type));
}
static inline bool is_execute_stmt(stmt::StmtType stmt_type)
{
return stmt_type == stmt::T_EXECUTE;
}
static inline bool is_pdml_supported_stmt(stmt::StmtType stmt_type)
{
return (stmt_type == stmt::T_INSERT || stmt_type == stmt::T_DELETE || stmt_type == stmt::T_UPDATE);