Re: libpq and prepared statements progress for 8.0

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: libpq and prepared statements progress for 8.0
Дата
Msg-id 414B8E2B.8010109@opencloud.com
обсуждение исходный текст
Ответ на Re: libpq and prepared statements progress for 8.0  (Oliver Jowett <oliver@opencloud.com>)
Ответы Re: libpq and prepared statements progress for 8.0  (David Wheeler <david@kineticode.com>)
Список pgsql-hackers
Oliver Jowett wrote:

> template1=> prepare s1(int) as select $1;
> PREPARE
> template1=> execute s1('12');
>  ?column?
> ----------
>        12
> (1 row)
> 
> (now replace "int" with "unknown"..)

Ok, bad example since the backend probably can't infer a type for the 
PREPARE in this case. A better example:

> template1=> prepare s1(int) as select typname from pg_type where oid = $1;
> PREPARE
> template1=> execute s1('16');
>  typname 
> ---------
>  bool
> (1 row)

-O


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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: libpq and prepared statements progress for 8.0
Следующее
От: Hans-Jürgen Schönig
Дата:
Сообщение: Interesting issue with SFR in PL/pgSQL ...