Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

mysql5.7版本中json类型的数据插入空数组,数据为null #1457

Open
mengxiaotian opened this issue Oct 12, 2019 · 0 comments
Open

Comments

@mengxiaotian
Copy link

model设定类型为
image

当teachers为空数组([]),执行语句:_, err := engine.Cols("teachers").Update(teacher)
插入数据成功,但是数据库中的数据是null

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants