[CP] [FEAT MERGE]:pl 4.2.2 version feature dev

This commit is contained in:
hanr881
2024-03-28 10:50:18 +00:00
committed by ob-robot
parent 4171f32387
commit 4130e898e3
56 changed files with 2660 additions and 531 deletions

View File

@ -511,10 +511,15 @@ int ObCmdExecutor::execute(ObExecContext &ctx, ObICmd &cmd)
break;
}
case stmt::T_EXECUTE: {
// ps文本模式应该要返回结果,不能定义为cmd
ret = OB_ERR_UNEXPECTED;
LOG_WARN("ps text shoudle be handled as normal query, not cmd", K(ret));
// DEFINE_EXECUTE_CMD(ObExecuteStmt, ObExecuteExecutor);
// only call procedure run this logic, text ps mode execute call procedure,
// if procedure has out param, it should return result to argument
ObExecuteStmt &stmt = *(static_cast<ObExecuteStmt*>(&cmd));
if (stmt::T_CALL_PROCEDURE != stmt.get_prepare_type()) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("ps text shoudle be handled as normal query, not cmd", K(ret));
} else {
DEFINE_EXECUTE_CMD(ObExecuteStmt, ObExecuteExecutor);
}
break;
}
case stmt::T_DEALLOCATE: {