pgsql: Fix NULLIF()'s handling of read-write expanded objects.

2024-11-25 Thread Tom Lane
Fix NULLIF()'s handling of read-write expanded objects. If passed a read-write expanded object pointer, the EEOP_NULLIF code would hand that same pointer to the equality function and then (unless equality was reported) also return the same pointer as its value. This is no good, because a function

pgsql: Fix NULLIF()'s handling of read-write expanded objects.

2024-11-25 Thread Tom Lane
Fix NULLIF()'s handling of read-write expanded objects. If passed a read-write expanded object pointer, the EEOP_NULLIF code would hand that same pointer to the equality function and then (unless equality was reported) also return the same pointer as its value. This is no good, because a function

pgsql: Fix NULLIF()'s handling of read-write expanded objects.

2024-11-25 Thread Tom Lane
Fix NULLIF()'s handling of read-write expanded objects. If passed a read-write expanded object pointer, the EEOP_NULLIF code would hand that same pointer to the equality function and then (unless equality was reported) also return the same pointer as its value. This is no good, because a function

pgsql: Fix NULLIF()'s handling of read-write expanded objects.

2024-11-25 Thread Tom Lane
Fix NULLIF()'s handling of read-write expanded objects. If passed a read-write expanded object pointer, the EEOP_NULLIF code would hand that same pointer to the equality function and then (unless equality was reported) also return the same pointer as its value. This is no good, because a function

pgsql: Fix NULLIF()'s handling of read-write expanded objects.

2024-11-25 Thread Tom Lane
Fix NULLIF()'s handling of read-write expanded objects. If passed a read-write expanded object pointer, the EEOP_NULLIF code would hand that same pointer to the equality function and then (unless equality was reported) also return the same pointer as its value. This is no good, because a function

pgsql: Fix NULLIF()'s handling of read-write expanded objects.

2024-11-25 Thread Tom Lane
Fix NULLIF()'s handling of read-write expanded objects. If passed a read-write expanded object pointer, the EEOP_NULLIF code would hand that same pointer to the equality function and then (unless equality was reported) also return the same pointer as its value. This is no good, because a function