Re: quoting internal variable names

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Ron Peterson <rpeterso(at)mtholyoke(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: quoting internal variable names
Date: 2005-02-20 00:04:04
Message-ID: 200502200104.04472.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ron Peterson wrote:
> Single quotes appear to behave
> differently in diffent contexts.
>
> CREATE USER
> :v_dbadmin
> WITH PASSWORD
> ':v_dbpass';

This sets your password to ":v_dbpass", which is probably not what you
wanted. Your next message contains the correct solution: include the
quotes in the variable value.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2005-02-20 00:53:52 Re: Returning 0 rows from a PL/PGSQL
Previous Message Vitaly Belman 2005-02-19 23:59:33 Returning 0 rows from a PL/PGSQL