[FEAT MERGE]sql compat feature

Co-authored-by: Zach41 <zach_41@163.com>
This commit is contained in:
zzg19950727
2023-08-30 11:44:37 +00:00
committed by ob-robot
parent 0dc1000829
commit 5e158ef5e9
39 changed files with 2339 additions and 477 deletions

View File

@ -797,9 +797,8 @@ int ObCmdExecutor::execute(ObExecContext &ctx, ObICmd &cmd)
DEFINE_EXECUTE_CMD(ObDropSequenceStmt, ObDropSequenceExecutor);
if (OB_SUCC(ret)) {
ObDropSequenceStmt &stmt = *(static_cast<ObDropSequenceStmt*>(&cmd));
const uint64_t tenant_id = stmt.get_arg().get_tenant_id();
const uint64_t sequence_id = stmt.get_arg().get_sequence_id();
if (OB_FAIL(my_session->drop_sequence_value_if_exists(tenant_id, sequence_id))) {
if (OB_FAIL(my_session->drop_sequence_value_if_exists(sequence_id))) {
LOG_WARN("failed to drop sequence value from session", K(ret));
}
}