Skip to content

Commit

Permalink
Merge pull request #10 from lefinal/fix-float-sql-encoding
Browse files Browse the repository at this point in the history
fix: fix float sql encoding
  • Loading branch information
lefinal authored Dec 13, 2023
2 parents b43e5a1 + 57394da commit d57e4ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion float32.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (f *Float32) Scan(src any) error {
}

// Value returns the value for satisfying the driver.Valuer interface.
func (f *Float32) Value() (driver.Value, error) {
func (f Float32) Value() (driver.Value, error) {
return sql.NullFloat64{
Float64: float64(f.Float32),
Valid: f.Valid,
Expand Down
2 changes: 1 addition & 1 deletion float64.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (f *Float64) Scan(src any) error {
}

// Value returns the value for satisfying the driver.Valuer interface.
func (f *Float64) Value() (driver.Value, error) {
func (f Float64) Value() (driver.Value, error) {
return sql.NullFloat64{
Float64: f.Float64,
Valid: f.Valid,
Expand Down

0 comments on commit d57e4ac

Please sign in to comment.