Skip to content
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

fix panic on json.RawMessage parse #655

Merged
merged 1 commit into from
Jul 4, 2022

Conversation

GoWebProd
Copy link

If we use this struct

type Thread struct {
	ID                     string          `db:"id" json:"id"`
	Corresponds   json.RawMessage `db:"correspondents" json:"correspondents"`
}

Insert panics because json.RawMessage is alias for []byte but interface can't be casted to it

@xiam xiam changed the base branch from master to issue-655_json-rawmessage-panic July 4, 2022 00:17
@xiam xiam merged commit 5ca6eb3 into upper:issue-655_json-rawmessage-panic Jul 4, 2022
@xiam xiam mentioned this pull request Jul 4, 2022
@xiam
Copy link
Member

xiam commented Jul 4, 2022

Thanks! good finding

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