We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
描述 建表时bit类型字段默认值设置 b'0' 用goInception检测语法错误,直接在数据库里执行成功
重现 SQL: CREATE TABLE aaa ( id int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键', IsDeleted bit(1) NOT NULL DEFAULT b'0' COMMENT '1: deleted, 0: normal', PRIMARY KEY (Id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='应用表';
aaa
id
IsDeleted
Id
检测错误: line 3 column 40 near "b '0' COMMENT '1: deleted, 0: normal', PRIMARY KEY (Id) ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COMMENT = '应用表'"
直接在库里执行:
环境
参数 enable_enum_set_bit =true //三种类型有没有单独设置开关的方法?enum确实要单独禁
The text was updated successfully, but these errors were encountered:
feature: 添加参数disable_types可灵活配置不允许的数据类型(#400,#409)
bf892ad
默认值 b'0'的问题在之前的版本已经修复, 请升级到最新版本重试. 类型禁用问题已经添加新的自定义方式, 稍后发布新版本.
b'0'
Sorry, something went wrong.
Merge pull request #418 from hanchuanchuan/feature-custom-disable-types
caf624d
feature: 添加参数disable_types可灵活配置禁用的数据类型(#400,#409)
No branches or pull requests
描述
建表时bit类型字段默认值设置 b'0' 用goInception检测语法错误,直接在数据库里执行成功
重现
SQL:
CREATE TABLE
aaa
(id
int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',IsDeleted
bit(1) NOT NULL DEFAULT b'0' COMMENT '1: deleted, 0: normal',PRIMARY KEY (
Id
)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='应用表';
检测错误:
line 3 column 40 near "b '0' COMMENT '1: deleted, 0: normal',
PRIMARY KEY (
Id
)) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COMMENT = '应用表'"
直接在库里执行:
环境
参数
enable_enum_set_bit =true //三种类型有没有单独设置开关的方法?enum确实要单独禁
The text was updated successfully, but these errors were encountered: