Re: PostgreSQL 9.2, SQL functions' named vs numbered parameters.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chris Travers <chris(dot)travers(at)gmail(dot)com>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: PostgreSQL 9.2, SQL functions' named vs numbered parameters.
Date: 2012-06-13 13:54:52
Message-ID: 8786.1339595692@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Chris Travers <chris(dot)travers(at)gmail(dot)com> writes:
> In another thread it has been mentioned that SQL language functions in
> 9.2 will accept named parameters

This is correct.

> and that you can't mix named and
> numbered parameters.

This is not correct. You can reference a parameter either by its name
or its number, same as in plpgsql.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2012-06-13 14:07:08 Re: Trying to execute several queries involving temp tables in a PHP script
Previous Message Rob Cowell 2012-06-13 13:43:05 Daisy chaining replication slaves ?