Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj authored and heavycrystal committed Mar 6, 2024
1 parent 9c5bcf9 commit bc811a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flow/connectors/postgres/qrep_sql_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ func (s *QRepStagingTableSync) SyncQRepRecords(
newColumns = append(newColumns, fmt.Sprintf("%s %s", QuoteIdentifier(field.Name),
qValueKindToPostgresType(string(field.Type))))
}
newColumns = append(newColumns, fmt.Sprintf("%s TIMESTAMP DEFAULT CURRENT_TIMESTAMP",
QuoteIdentifier(syncedAtCol)))
newColumns = append(newColumns, QuoteIdentifier(syncedAtCol)+" TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
_, err := tx.Exec(ctx, fmt.Sprintf("CREATE UNLOGGED TABLE %s (%s);",
overwriteTempTableIdentifier,
strings.Join(newColumns, ", "),
Expand Down

0 comments on commit bc811a6

Please sign in to comment.