Skip to content

Commit

Permalink
Update xsql bool
Browse files Browse the repository at this point in the history
  • Loading branch information
onanying committed Jan 12, 2024
1 parent 55979a7 commit b71231d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xsql/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ func (t *Fetcher) mapped(field reflect.Value, row *Row, tag string) (err error)
case reflect.String:
v = res.String()
break
case reflect.Bool:
v = res.Int() == 1
break
default:
if !res.Empty() &&
field.Type().String() == "time.Time" &&
Expand Down

0 comments on commit b71231d

Please sign in to comment.