Re: [REVIEW] Patch for cursor calling with named parameters - Mailing list pgsql-hackers

From Yeb Havinga
Subject Re: [REVIEW] Patch for cursor calling with named parameters
Date
Msg-id 4E8F1315.70109@gmail.com
Whole thread Raw
In response to Re: [REVIEW] Patch for cursor calling with named parameters  (Yeb Havinga <yebhavinga@gmail.com>)
Responses Re: [REVIEW] Patch for cursor calling with named parameters
List pgsql-hackers
On 2011-10-07 12:21, Yeb Havinga wrote:
> On 2011-10-06 16:04, Royce Ausburn wrote:
>> Initial Review for patch:
>>
>> http://archives.postgresql.org/pgsql-hackers/2011-09/msg00744.php
>
>
> Again, thank you very much for your thorough review. I'll update the
> patch so mixing positional and named parameters are removed, add
> documentation, and give syntax errors before an error message
> indicating that positional and named parameters were mixed.
>

Attach is v2 of the patch.

Mixed notation now raises an error.

In contrast with what I said above, named parameter related errors are
thrown before any syntax errors. I tested with raising syntax errors
first but the resulting code was a bit more ugly and the sql checking
under a error condition (i.e. double named parameter error means there
is one parameter in short)  was causing serious errors.

Documentation was also added, regression tests updated.

regards,

--
Yeb Havinga
http://www.mgrid.net/
Mastering Medical Data


Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Why does WAL_DEBUG macro need to be defined by default?
Next
From: Julien Tachoires
Date:
Subject: patch : Allow toast tables to be moved to a different tablespace