Skip to content

Commit

Permalink
Using sql.NullTime
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacobbrewer1 committed Mar 22, 2024
1 parent 8f460e8 commit 206fc65
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/utils/sql/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import (
"strconv"
"strings"
"time"

"github.com/go-sql-driver/mysql"
)

var null = []byte{0x6e, 0x75, 0x6c, 0x6c}
Expand Down Expand Up @@ -408,5 +406,5 @@ func (r *NullTime) parse(src string) error {

// NewNullTime returns a valid new NullTime for a given time.Time value.
func NewNullTime(t time.Time) *NullTime {
return &NullTime{NullTime: mysql.NullTime{Time: t, Valid: true}}
return &NullTime{NullTime: sql.NullTime{Time: t, Valid: true}}
}

0 comments on commit 206fc65

Please sign in to comment.