Skip to content

Commit f651a49

Browse files
Handle _text redshift to pg data type conversion
1 parent 19656a6 commit f651a49

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/redshift_data_api.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ const (
167167
RedshiftTypeName = "name"
168168
RedshiftTypeOid = "oid"
169169
RedshiftTypeAclitem = "_aclitem"
170+
RedshiftTypeText = "_text"
170171
)
171172

172173
func (handler *redshiftDataApiQueryHandler) convertRedshiftResultTypeToPostgresType(redshiftTypeName string, loggerWithContext *zap.Logger) (oid.Oid, error) {
@@ -177,6 +178,7 @@ func (handler *redshiftDataApiQueryHandler) convertRedshiftResultTypeToPostgresT
177178
RedshiftTypeChar: oid.T_varchar,
178179
RedshiftTypeVarchar: oid.T_varchar,
179180
RedshiftTypeBpchar: oid.T_bpchar,
181+
RedshiftTypeText: oid.T_text,
180182
// Timestamp types
181183
RedshiftTypeTimestamp: oid.T_timestamp,
182184
RedshiftTypeTimestamptz: oid.T_timestamptz,

0 commit comments

Comments
 (0)