-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[BugFix] remove nil inserts in models #11096
[BugFix] remove nil inserts in models #11096
Conversation
@zeripath done |
🤔 I must be missing something, here. Since xorm should ignore empty arrays on insert, what bug is this PR fixing? (I understand it might be faster doing the |
@guillep2k could be a xorm bug but if I remove this cheks migration freeze or xorm throw error: "No element on slice when insert" this is due to xorm update to 1.1... |
@lunny could explain this better - but it breaks migration at least combined with gitlab migration pull |
Before xorm v1.0, empty slice when inserting will be ignored and returned successful, but now it will return an error. So users have to check the length of the slice itself. |
@guillep2k / @zeripath would be nice if you can approve this (or tell me what I have to change) |
* Fix InsertReleases Nil Insert on Attachments * FIX "No element on slice when insert" & smal refactor * again * impruve * rm useles newline * Apply suggestions from code review Co-Authored-By: zeripath <[email protected]> * process insert as a whole Co-authored-by: zeripath <[email protected]>
this blocks #9084