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

优化列类型和默认值类型判断 #12

Merged
merged 1 commit into from
Mar 8, 2024
Merged

Conversation

leonadle
Copy link
Contributor

@leonadle leonadle commented Mar 7, 2024

当修改的列类型为 varchar,默认值类型为 int 的时候,服务会报错 500。

错误:

alter table test modify column c1 varchar(10) default 0

正确:

alter table test modify column c1 varchar(10) default '0'

@lazzyfu lazzyfu merged commit f7e9597 into lazzyfu:main Mar 8, 2024
@leonadle leonadle deleted the pr_branch branch April 16, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants