Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3842892

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 parentc114e16 commit3842892

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)

[8]ページ先頭

©2009-2025 Movatter.jp