Skip to content

Commit

Permalink
fix typeFormat slice range
Browse files Browse the repository at this point in the history
  • Loading branch information
fifsky committed Aug 29, 2018
1 parent 9621ca8 commit 0d00c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func typeFormat(t string) string {
return "time.Time"
}

if t[0:6] == "bigint" {
if len(t) >= 6 && t[0:6] == "bigint" {
return "int64"
}

Expand Down

0 comments on commit 0d00c3c

Please sign in to comment.