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

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: psql command line variables are unknown when -c SQL statement are executed
Дата
Msg-id 162867790911160328w52498540ha50f0eaeebe11a5@mail.gmail.com
обсуждение исходный текст
Ответ на Re: psql command line variables are unknown when -c SQL statement are executed  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: psql command line variables are unknown when -c SQL statement are executed  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-bugs
2009/11/16 Peter Eisentraut <peter_e@gmx.net>:
> On m=C3=A5n, 2009-11-16 at 10:19 +0100, Pavel Stehule wrote:
>> wrong:
>>
>> pavel@nemesis ~]$ psql postgres -v x=3D10 -c "select :x"
>> ERROR: =C2=A0syntax error at or near ":"
>> LINE 1: select :x
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^
>
> This is documented in the psql man page.

I don't see it, Peter?

Is it some reason for it? I don't understand, why this order is correct:

execute statement
process external variables
finish

Pavel

>
>
>

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: psql command line variables are unknown when -c SQL statement are executed
Следующее
От: "Clark Pearson"
Дата:
Сообщение: BUG #5191: now() returns same value from Perl.