Skip to content

Commit

Permalink
Int.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Sep 12, 2024
1 parent 8104ada commit ebe568b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clients/shared/default_value.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ func DefaultValue(column columns.Column, dialect sql.Dialect) (any, error) {
}
case typing.EDecimal.Kind:
if column.KindDetails.ExtendedDecimalDetails.Scale() == 0 {
int64Value, err := typing.AssertType[int64](column.DefaultValue())
if err == nil {
return fmt.Sprint(int64Value), nil
switch column.DefaultValue().(type) {
case int, int8, int16, int32, int64:
return fmt.Sprint(column.DefaultValue()), nil
}
}

Expand Down

0 comments on commit ebe568b

Please sign in to comment.