【 使用环境 】生产环境 or 测试环境 测试环境
【 OB or 其他组件 】
【 使用版本 】4.2.1.2
【问题描述】清晰明确描述问题
DROP PROCEDURE IF EXISTS EXE_SQL_BY_COND;
CREATE PROCEDURE EXE_SQL_BY_COND()
BEGIN
IF EXISTS
(select 1 from information_schema.COLUMNS
where table_schema = ‘vxdatabase’
and table_name = ‘tpositionsummary’ and column_name = ‘FOperateTime’)
THEN
alter table TAccountInfo CHANGE COLUMN FOperateTime FOperatorTime timestamp;
alter table TAccountInfo modify COLUMN FOperatorTime timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT ‘操作时间’;
end IF;
END;
CALL EXE_SQL_BY_COND();
DROP PROCEDURE IF EXISTS EXE_SQL_BY_COND;
创建存储过程的语句如上。ODC及obclient均报错,check the manual that corresponds to your OceanBase version for the right syntax to use near ‘timestamp’ at line 8
【复现路径】问题出现前后相关操作
【附件及日志】推荐使用OceanBase敏捷诊断工具obdiag收集诊断信息,详情参见链接(右键跳转查看):