Skip to content

Commit

Permalink
RawBytes isn't allowed on Row.Scan
Browse files Browse the repository at this point in the history
  • Loading branch information
wroge committed Dec 8, 2024
1 parent 5c07dc2 commit 987acce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlt.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ var null = []byte("null")

// ScanJSON is a Scanner to unmarshal byte strings into T.
func ScanJSON[T any](dest *T, str string) (Scanner, error) {
var data sql.RawBytes
var data []byte

return Scanner{
SQL: str,
Expand Down

0 comments on commit 987acce

Please sign in to comment.