Skip to content

Commit

Permalink
pg pkeys mixed case support
Browse files Browse the repository at this point in the history
  • Loading branch information
heavycrystal committed Dec 28, 2023
1 parent c9e5e90 commit e093337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/connectors/postgres/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ func (c *PostgresConnector) generateMergeStatement(
}
if slices.Contains(normalizedTableSchema.PrimaryKeyColumns, columnName) {
primaryKeyColumnCasts[columnName] = fmt.Sprintf("(_peerdb_data->>'%s')::%s", columnName, pgType)
primaryKeySelectSQLArray = append(primaryKeySelectSQLArray, fmt.Sprintf("src.%s=dst.%s",
primaryKeySelectSQLArray = append(primaryKeySelectSQLArray, fmt.Sprintf(`src."%s"=dst."%s"`,
columnName, columnName))
}
}
Expand Down

0 comments on commit e093337

Please sign in to comment.