You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
gorm version:
1.24.1
MySQL version:
8.0.31
I have the following models:
According to the
Many to Many
, I'll have a join table calledreport_record
.Now I'm going to insert a
Report
record, in which the length ofRecords
is 720. The insert function is:Expected behavior is:
Report
record intoreport
table.Record
records intorecord
table, do nothing but return ids if conflicts happen.report_record
table.The actual behavior is:
ERROR 1869
when inserting 720Record
records.I'm a noob in MySQL. Can anyone help this problem? Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions