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

fix: field head rune #4310

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

imdszxs
Copy link

@imdszxs imdszxs commented Aug 9, 2024

CREATE TABLE user (
id bigint(10) NOT NULL AUTO_INCREMENT,
123user varchar(50) NOT NULL DEFAULT '' COMMENT '用户',
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

当字段以数字开头时,生成的model以下划线开头,会被认为私有,直接执行生成的findOne查询会报错 value not addressable or interfaceable

Copy link

codecov bot commented Aug 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.10%. Comparing base (8690859) to head (254f5c3).
Report is 247 commits behind head on master.

Additional details and impacted files

see 255 files with indirect coverage changes

@kesonan
Copy link
Collaborator

kesonan commented Aug 13, 2024

I think the best solution is rename the column.

@kevwan kevwan added by design Designed as it is wontfix This will not be worked on labels Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
by design Designed as it is wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants