Skip to content

Commit

Permalink
Improve comment about unquoted null values
Browse files Browse the repository at this point in the history
  • Loading branch information
kinghuang committed Jun 14, 2024
1 parent 7646d65 commit dec93ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion target_postgres/sinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ def bulk_insert_records( # type: ignore[override]
]

def process_column_value(data: Any, proc: Callable) -> str:
# If the data is null, return nothing (unquoted).
# If the data is null, return an unquoted, empty value.
# Unquoted is important here, for PostgreSQL to interpret as null.
if data is None:
return ""

Expand Down

0 comments on commit dec93ff

Please sign in to comment.