Skip to content

Commit

Permalink
Add *decimal.Decimal.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Sep 3, 2024
1 parent e2e15d3 commit 7d6b09a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/debezium/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ func (f Field) ShouldSetDefaultValue(defaultValue any) bool {
if f.DebeziumType == UUID && castedDefaultValue == uuid.Nil.String() {
return false
}
case bool, int, int16, int32, int64, float32, float64:

return true
case bool, int, int16, int32, int64, float32, float64, *decimal.Decimal:
return true
default:
// TODO: Remove this after some time.
Expand Down

0 comments on commit 7d6b09a

Please sign in to comment.