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

beedb 根据主键无法删除数据问题 #64

Open
wqjohnston opened this issue Jun 4, 2021 · 0 comments
Open

beedb 根据主键无法删除数据问题 #64

wqjohnston opened this issue Jun 4, 2021 · 0 comments

Comments

@wqjohnston
Copy link

Struct结构体,主键为首字母大写时,如:Id,在执行删除操作无法删除
beedb.go 文件 562行 id := results[strings.ToLower(orm.PrimaryKey)] 进行操作时获取到的id为nil,导致无法删除。
将562行修改文 id := results[orm.PrimaryKey] 即可执行

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

No branches or pull requests

1 participant