Re: what's the scope of psql parameter values?

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: "Dick Wieland" <dick(dot)wieland(at)wiline(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: what's the scope of psql parameter values?
Date: 2003-07-17 20:49:21
Message-ID: m3wueg281a.fsf@varsoon.wireboard.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Dick Wieland" <dick(dot)wieland(at)wiline(dot)com> writes:

> wiline=# select :S.isf('update');
> WARNING: Error occurred while executing PL/pgSQL function isf
> WARNING: line 6 at select into variables
> ERROR: parser: parse error at or near ":" at character 22
>
> Is this expected behavior I wonder? Does the parameter substitution
> facility not extend down "into" the function space ...

The function body is just a single-quoted SQL string as far as psql is
concerned, and it doesn't do variable substitution inside quoted
strings.

-Doug

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Josh Berkus 2003-07-17 20:53:51 Re: We need volunteers for Comdex!
Previous Message Josh Berkus 2003-07-17 20:48:14 We need volunteers for Comdex!