Skip to content

Commit

Permalink
improve data converting for package gdb
Browse files Browse the repository at this point in the history
  • Loading branch information
gqcn committed May 19, 2022
1 parent 61bf0a0 commit 6a01275
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions database/gdb/gdb_core_structure.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,15 @@ func (c *Core) ConvertDataForRecordValue(ctx context.Context, value interface{})
case gtime.Time:
if r.IsZero() {
convertedValue = nil
} else {
convertedValue = r.Time
}

case *gtime.Time:
if r.IsZero() {
convertedValue = nil
} else {
convertedValue = r.Time
}

case *time.Time:
Expand Down

0 comments on commit 6a01275

Please sign in to comment.