Re: Increased error verbosity when querying row-returning

From: Brendan Jurd <blakjak(at)blakjak(dot)sytes(dot)net>
To: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Increased error verbosity when querying row-returning
Date: 2005-01-12 06:34:43
Message-ID: 41E4C503.3070509@blakjak.sytes.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Alvaro Herrera wrote:

>On Wed, Jan 12, 2005 at 09:23:26AM +1100, Brendan Jurd wrote:
>
>
>>This patch to src/backend/executor/nodeFunctionscan.c is intended to
>>make life a little easier for people using row-returning functions, by
>>increasing the level of detail in the error messages thrown when
>>tupledesc_match fails.
>>
>>
>
>You should get rid of the returns, because ereport(ERROR) will never
>return control to the function and they are thus dead code. And make
>the function return void rather than bool.
>
>Also follow the style: use "if (foo)" rather than "if( foo )". And
>message style stipulates that the errdetail() message should start with
>a capital (upper case?) letter.
>
>
>
Thanks Alvaro, changes made and new patch attached.

Attachment Content-Type Size
nodeFunctionscan.c.diff text/plain 3.5 KB

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message John Hansen 2005-01-12 07:44:22 RULES doesn't work as expected
Previous Message Alvaro Herrera 2005-01-11 23:42:07 Re: Increased error verbosity when querying row-returning functions