You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
描述
对问题简单清晰的描述
alter 语句审核 bug 重现
模拟重现的步骤
1。在db里前提建立wtest表。结构如下。
drop table wtest;
CREATE TABLE wtest ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, xxxxx bigint(20) NOT NULL, ttttt bigint(20) NOT NULL, status tinyint(4) NOT NULL, start_time int(11) NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2。在审核平台上 审核以下语句 不报错。
ALTER TABLE wtest
CHANGE COLUMN statusteststatus tinyint(4) UNSIGNED NOT NULL DEFAULT 0 COMMENT '状态' AFTER xxxxx,
MODIFY COLUMN start_time int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '开始时间' AFTER status;
实际执行应该报错 (1054, "Unknown column 'status' in 'wtest'")
环境
数据库: [mysql/mariadb]
版本: [例如 5.7.21]
参数
可能与问题相关的设置参数
The text was updated successfully, but these errors were encountered:
描述
对问题简单清晰的描述
alter 语句审核 bug
重现
模拟重现的步骤
1。在db里前提建立wtest表。结构如下。
drop table wtest;
CREATE TABLE
wtest
(id
bigint(20) unsigned NOT NULL AUTO_INCREMENT,xxxxx
bigint(20) NOT NULL,ttttt
bigint(20) NOT NULL,status
tinyint(4) NOT NULL,start_time
int(11) NOT NULL,PRIMARY KEY (
id
)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2。在审核平台上 审核以下语句 不报错。
ALTER TABLE
wtest
CHANGE COLUMN
status
teststatus
tinyint(4) UNSIGNED NOT NULL DEFAULT 0 COMMENT '状态' AFTERxxxxx
,MODIFY COLUMN
start_time
int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '开始时间' AFTERstatus
;实际执行应该报错 (1054, "Unknown column 'status' in 'wtest'")
环境
参数
可能与问题相关的设置参数
The text was updated successfully, but these errors were encountered: