Skip to content

Commit 106fbe0

Browse files
committed
Fix potentially bad NULL handling in proto parser
1 parent 97e362e commit 106fbe0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pglogical_proto.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ pglogical_read_tuple(StringInfo in, PGLogicalRelation *rel,
272272
case 'n': /* null */
273273
/* already marked as null */
274274
tuple->values[attid] = 0xdeadbeef;
275+
tuple->changed[attid] = true;
275276
break;
276277
case 'u': /* unchanged column */
277278
tuple->values[attid] = 0xfbadbeef; /* make bad usage more obvious */

0 commit comments

Comments
 (0)