Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
fix: Add support for int32 and int64 array types (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
hermanschaaf authored Jul 22, 2022
1 parent f91812b commit 7d4624d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/schema/column.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (c Column) checkType(v interface{}) bool {
return c.Type == TypeFloat
case []string, []*string, *[]string:
return c.Type == TypeStringArray || c.Type == TypeJSON
case []int, []*int, *[]int:
case []int, []*int, *[]int, []int32, []*int32, []int64, []*int64, *[]int64:
return c.Type == TypeIntArray || c.Type == TypeJSON
case []interface{}:
return c.Type == TypeJSON
Expand Down

0 comments on commit 7d4624d

Please sign in to comment.