Re: DECLARE STATEMENT setting up a connection in ECPG

Поиск
Список
Период
Сортировка
От Ideriha, Takeshi
Тема Re: DECLARE STATEMENT setting up a connection in ECPG
Дата
Msg-id 4E72940DA2BF16479384A86D54D0988A4D81D46E@G01JPEXMBKW04
обсуждение исходный текст
Ответ на Re: DECLARE STATEMENT setting up a connection in ECPG  (Michael Meskes <meskes@postgresql.org>)
Ответы Re: DECLARE STATEMENT setting up a connection in ECPG
Список pgsql-hackers
Thank you for your comment.

Friday, November 18, 2016 4:45 AM Michael Meskes wrote :
> >  - Translate the DECLARE STATEMENT into a new function with parameters.
> >    These parameters carry the information like connection_name and
> statement_name.
> >  - The function is a new function defined in the ECPG library.
> 
> Why's that? I haven't checked if the standard says anything about this and my
> memory might be wrong, but isn't "DECLARE STATEMENT" supposed to be purely
> declarative, i.e. not executed at run time?

My lack of explanation caused the confusion, sorry.
Your point is true.
"DECLARE STATEMENT" is declarative ,not function in .pgc file.

I wanted to say that in order to use the connection pointed 
by the DECLARE STATEMENT some functions like ECPGdo() would be modified or
new function would be added under the directory ecpglib/.

This modification or new function will be used to get the connection by statement_name.

Regards, 
Ideriha, Takeshi
Fujitsu

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: pg_recvlogical --endpos
Следующее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: Document how to set up TAP tests for Perl 5.8.8