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
Uh oh!
There was an error while loading. Please reload this page.
-
gorm version:
1.24.1MySQL version:
8.0.31I 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
Reportrecord, in which the length ofRecordsis 720. The insert function is:Expected behavior is:
Reportrecord intoreporttable.Recordrecords intorecordtable, do nothing but return ids if conflicts happen.report_recordtable.The actual behavior is:
ERROR 1869when inserting 720Recordrecords.I'm a noob in MySQL. Can anyone help this problem? Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions