A minor correction in comment in heaptuple.c

From: Amit Langote <amitlangote09(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: A minor correction in comment in heaptuple.c
Date: 2013-06-18 08:56:34
Message-ID: CA+HiwqFVGLvvyiEJzNjy+KeG+aU8PV3J4gK94bN4FXJesj7ikA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Should it be: "return true if attnum is out of range according to the
tupdesc" instead of "return NULL if attnum is out of range according
to the tupdesc" at src/backend/access/common/heaptuple.c: 1345

/*
* return true if attnum is out of range according to the tupdesc
*/
if (attnum > tupleDesc->natts)
return true;

Attached patch fixes this.

--
Amit Langote

Attachment Content-Type Size
correct-a-comment-in-heaptupledotc.patch application/octet-stream 518 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2013-06-18 08:58:50 Re: extensible external toast tuple support
Previous Message Heikki Linnakangas 2013-06-18 08:41:06 Re: Spin Lock sleep resolution