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

ORM应增加虚拟字段标识 #549

Open
Joyboo opened this issue Jun 13, 2022 · 1 comment
Open

ORM应增加虚拟字段标识 #549

Joyboo opened this issue Jun 13, 2022 · 1 comment

Comments

@Joyboo
Copy link
Contributor

Joyboo commented Jun 13, 2022

bug

当数据表结构中有类似:

`ymd` int(10) unsigned GENERATED ALWAYS AS (from_unixtime(`instime`, ''%y%m%d'')) VIRTUAL NOT NULL

这种字段时,写操作如果不排除掉此类字段则会报错

建议

  1. 增加 VIRTUAL GENERATED 标识
  2. ORM写操作时直接过滤掉此类字段
@XueSiLf
Copy link
Collaborator

XueSiLf commented Jul 5, 2022

好的,感谢反馈,晚点就加上。

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

2 participants