Skip to content
New issue

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

mysql/mysql struct #319

Open
huxiangquan opened this issue Feb 12, 2025 · 1 comment
Open

mysql/mysql struct #319

huxiangquan opened this issue Feb 12, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@huxiangquan
Copy link

db struct:

create table if not exists base_color (id int(11) auto_increment not null ,
enable bit(1) default 'b' 1 '' COMMENT 'enable:1true,0false' not null ,
primary key (id)) ENGINE = InnoDB default CHARSET = utf8 collate = utf8_general_ci COMMENT = 'basecolor'

ERROR.log: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1''

Right syntax is :

enable bit(1) default b'1'

@huxiangquan huxiangquan added the bug Something isn't working label Feb 12, 2025
@qianyiwen2019
Copy link
Collaborator

please paste the origin sql to create the table in source mysql.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants