Open emilienkofman opened 1 month ago
looks like this was introduced in https://github.com/go-gorm/gorm/commit/85299bfca7172489d7f93a5525ee5ab0d92d514b
@a631807682 do you have any insight on how to fix that? Let me know if I can help. I'm not sure exactly what to do at the moment.
looks like this was introduced in 85299bf
@a631807682 do you have any insight on how to fix that? Let me know if I can help. I'm not sure exactly what to do at the moment.
Cap
and Len
are not handled correctly here, we need to handle them correctly, or avoid them through Append
. Are you interested to create a PR for it?
GORM Playground Link
https://github.com/go-gorm/playground/pull/735
Description
When using Join and Preload together, if we get more than 20 entries in the database it will panic (I guess due to this beeing 20)
gorm version 1.25.10
obtained stack trace:
the test case is inspired with https://github.com/go-gorm/gorm/issues/6715 and likely related to the fix of that previous issue (but I've not been investigating enough)
https://github.com/go-gorm/gorm/issues/6715