Re: Use UNKNOWN with PL/Perl spi_prepare()?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Use UNKNOWN with PL/Perl spi_prepare()?
Дата
Msg-id 709.1270597239@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Use UNKNOWN with PL/Perl spi_prepare()?  ("David E. Wheeler" <david@kineticode.com>)
Ответы Re: Use UNKNOWN with PL/Perl spi_prepare()?
Список pgsql-hackers
"David E. Wheeler" <david@kineticode.com> writes:
> I tried this:
>     try=# create or replace function try() returns void language plperl as $$ 
>         spi_prepare('select length($1)', 'unknown');
>     $$;
>     CREATE FUNCTION
>     try=# select try();
>     ERROR:  error from Perl function "try": failed to find conversion function from unknown to text at line 2.

Why would you think this is useful, considering that plperl has no
concept of SQL data types?  Everything you could pass to
spi_exec_prepared is effectively text, no?
        regards, tom lane


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

Предыдущее
От: "David E. Wheeler"
Дата:
Сообщение: Use UNKNOWN with PL/Perl spi_prepare()?
Следующее
От: "David E. Wheeler"
Дата:
Сообщение: Re: Use UNKNOWN with PL/Perl spi_prepare()?