Skip to content

Commit

Permalink
Merge pull request #41 from goccy/add-null-guard
Browse files Browse the repository at this point in the history
add guard for null value
  • Loading branch information
goccy authored Nov 9, 2022
2 parents b5f8a62 + d8dca5d commit f0f2e28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/function_register.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ func RegisterFunctions(conn *sqlite3.SQLiteConn) error {
if err != nil {
return "", err
}
if decoded == nil {
return nil, nil
}
return decoded.Interface(), nil
}, true); err != nil {
return fmt.Errorf("failed to register group_by function: %w", err)
Expand Down

0 comments on commit f0f2e28

Please sign in to comment.