Skip to content

Conversation

@warkanum
Copy link

In model_table_has_many.go, the indirectAsKey method has a nil pointer bug.
Calling reflect.TypeOf(v).Kind() if v is nil causes a panic.

@warkanum warkanum changed the title Fix rare panic in indirectAsKey (model_table_has_many.go) when loading complex models fix: Rare panic in indirectAsKey (model_table_has_many.go) when loading complex models Nov 20, 2025
@Aoang
Copy link
Collaborator

Aoang commented Nov 26, 2025

Hi. It looks like the root cause here is an improper implementation of driver.Valuer. Could you elaborate on the circumstances under which this occurs?

Implementing a fix for this in the proposed way could inadvertently obscure issues and hinder the troubleshooting process for other incorrect driver.Valuer implementations down the line.

@Aoang Aoang self-requested a review November 26, 2025 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants