Skip to content

Commit

Permalink
Inline.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Sep 26, 2024
1 parent f866263 commit 2e53b7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clients/redshift/cast.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import (
const maxRedshiftLength int32 = 65535

func replaceExceededValues(colVal string, colKind typing.KindDetails, truncateExceededValue bool) string {
structOrString := colKind.Kind == typing.Struct.Kind || colKind.Kind == typing.String.Kind
if structOrString {
if colKind.Kind == typing.Struct.Kind || colKind.Kind == typing.String.Kind {
maxLength := maxRedshiftLength
// If the customer has specified the maximum string precision, let's use that as the max length.
if colKind.OptionalStringPrecision != nil {
Expand Down

0 comments on commit 2e53b7f

Please sign in to comment.