Re: psql command line variables are unknown when -c SQL statement are executed

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: psql command line variables are unknown when -c SQL statement are executed
Date: 2009-11-16 11:23:58
Message-ID: 1258370638.23638.1.camel@fsopti579.F-Secure.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On mån, 2009-11-16 at 10:19 +0100, Pavel Stehule wrote:
> wrong:
>
> pavel(at)nemesis ~]$ psql postgres -v x=10 -c "select :x"
> ERROR: syntax error at or near ":"
> LINE 1: select :x
> ^

This is documented in the psql man page.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Pavel Stehule 2009-11-16 11:28:53 Re: psql command line variables are unknown when -c SQL statement are executed
Previous Message Pavel Stehule 2009-11-16 09:19:13 psql command line variables are unknown when -c SQL statement are executed