Skip to content

Commit bc8f275

Browse files
lint
1 parent 5007081 commit bc8f275

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

flow/connectors/postgres/normalize_stmt_generator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,10 @@ func (n *normalizeStmtGenerator) generateMergeStatement(
178178
// Include them in the record as jsonb, then unwrap in the USING SELECT.
179179
switch column.Type {
180180
case "json":
181-
recordDefs = append(recordDefs, fmt.Sprintf("%s jsonb", quotedCol))
181+
recordDefs = append(recordDefs, quotedCol+" jsonb")
182182
selectExprs = append(selectExprs, fmt.Sprintf("(%s #>> '{}')::json AS %s", quotedCol, quotedCol))
183183
case "jsonb":
184-
recordDefs = append(recordDefs, fmt.Sprintf("%s jsonb", quotedCol))
184+
recordDefs = append(recordDefs, quotedCol+" jsonb")
185185
selectExprs = append(selectExprs, fmt.Sprintf("(%s #>> '{}')::jsonb AS %s", quotedCol, quotedCol))
186186
default:
187187
recordDefs = append(recordDefs, fmt.Sprintf("%s %s", quotedCol, pgType))

0 commit comments

Comments
 (0)