Skip to content

Commit

Permalink
update things
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Oct 22, 2023
1 parent 1e111f4 commit 4efb606
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flow/connectors/postgres/qrep_sync_method.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ func (s *QRepStagingTableSync) SyncQRepRecords(
syncRecordsStartTime := time.Now()
var numRowsSynced int64

if writeMode.WriteType == protos.QRepWriteType_QREP_WRITE_MODE_APPEND {
if writeMode == nil ||
writeMode.WriteType == protos.QRepWriteType_QREP_WRITE_MODE_APPEND {
// Perform the COPY FROM operation
numRowsSynced, err = tx.CopyFrom(
context.Background(),
Expand Down

0 comments on commit 4efb606

Please sign in to comment.