Re: [HACKERS] psql - add ability to test whether a variable exists

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: [HACKERS] psql - add ability to test whether a variable exists
Дата
Msg-id CAFj8pRDtF+wwwjnKX1B3DAmqqfZryXNfG-3G93UeywMv9tDOLg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] psql - add ability to test whether a variable exists  (Fabien COELHO <coelho@cri.ensmp.fr>)
Ответы Re: [HACKERS] psql - add ability to test whether a variable exists  (Corey Huinker <corey.huinker@gmail.com>)
Re: [HACKERS] psql - add ability to test whether a variable exists  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-hackers


2017-08-26 19:55 GMT+02:00 Fabien COELHO <coelho@cri.ensmp.fr>:

Any colon prefixed syntax can be made to work because it is enough for the lexer to detect and handle... so

 :{defined varname}

may be an option, although I do not like the space much because it adds some fuzzyness in the lexer which has to process it. It is probably doable, though. I like having a "?" because there is a question. Other
suggestions somehow in line with your proposal could be
 :{?varname}
 :{varname?}
what do you think?

Here is a version with the :{?varname} syntax.

It looks much better for me. 

Regards

Pavel


--
Fabien.

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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: [HACKERS] psql - add ability to test whether a variable exists
Следующее
От: Corey Huinker
Дата:
Сообщение: Re: [HACKERS] psql - add ability to test whether a variable exists