Skip to content

Commit 20cdb55

Browse files
committed
Improve comment about unquoted null values
1 parent e8b438c commit 20cdb55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

target_postgres/sinks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ def bulk_insert_records( # type: ignore[override]
180180
]
181181

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

0 commit comments

Comments
 (0)