Skip to content

Commit 3842892

Browse files
committed
Recent changes got the sense of the notnull bit backwards in the 2.0
protocol output routines. Mea culpa :-(. Per report from Kris Jurka.
1 parent c114e16 commit 3842892

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/access/common/printtup.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Portions Copyright (c) 1994, Regents of the University of California
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/access/common/printtup.c,v 1.88 2005/04/06 16:34:04 tgl Exp $
12+
* $PostgreSQL: pgsql/src/backend/access/common/printtup.c,v 1.89 2005/04/23 17:45:35 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -402,7 +402,7 @@ printtup_20(TupleTableSlot *slot, DestReceiver *self)
402402
k = 1 << 7;
403403
for (i = 0; i < natts; ++i)
404404
{
405-
if (slot->tts_isnull[i])
405+
if (!slot->tts_isnull[i])
406406
j |= k; /* set bit if not null */
407407
k >>= 1;
408408
if (k == 0) /* end of byte? */
@@ -610,7 +610,7 @@ printtup_internal_20(TupleTableSlot *slot, DestReceiver *self)
610610
k = 1 << 7;
611611
for (i = 0; i < natts; ++i)
612612
{
613-
if (slot->tts_isnull[i])
613+
if (!slot->tts_isnull[i])
614614
j |= k; /* set bit if not null */
615615
k >>= 1;
616616
if (k == 0) /* end of byte? */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy