Skip to content

Commit

Permalink
Update comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Sep 26, 2024
1 parent e34defc commit 588411d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clients/redshift/cast.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

const maxRedshiftLength int32 = 65535

// canIncreasePrecision - returns true if column is a string, precision is specified and value length is less than [maxRedshiftLength]
func canIncreasePrecision(colKind typing.KindDetails, valueLength int32) bool {
if colKind.Kind == typing.String.Kind && colKind.OptionalStringPrecision != nil {
return maxRedshiftLength > *colKind.OptionalStringPrecision && valueLength <= maxRedshiftLength
Expand Down

0 comments on commit 588411d

Please sign in to comment.