Re: ECPG doesn't compile CREATE AS EXECUTE properly.

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: ECPG doesn't compile CREATE AS EXECUTE properly.
Дата
Msg-id YOO9SwZLM3bXDzGN@paquier.xyz
обсуждение исходный текст
Ответ на ECPG doesn't compile CREATE AS EXECUTE properly.  (Kyotaro Horiguchi <horikyota.ntt@gmail.com>)
Ответы Re: ECPG doesn't compile CREATE AS EXECUTE properly.
Список pgsql-hackers
On Thu, Jul 01, 2021 at 06:45:25PM +0900, Kyotaro Horiguchi wrote:
> Separating "CREATE TABLE AS EXECUTE" from ExecuteStmt would be cleaner
> but I avoided to change the syntax tree. Instead the attched make
> distinction of $$.type of ExecuteStmt between NULL and "" to use to
> notify the returned name is name of a prepared statement or a full
> statement.

I am not so sure, and using an empty string makes the code a bit
harder to follow.  How would that look with the grammar split you have
in mind?  Maybe that makes the code more consistent with the PREPARE
block a couple of lines above?
--
Michael

Вложения

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

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: simplifying foreign key/RI checks
Следующее
От: David Rowley
Дата:
Сообщение: Re: Re: parallel distinct union and aggregate support patch