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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Use UNKNOWN with PL/Perl spi_prepare()?
Дата
Msg-id 1298.1270598817@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: 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:
> DBD::Pg makes extensive use of unknown for prepares. If I do
>     my $sth = $dbh->prepare('SELECT foo FROM bar WHERE baz = ?');
> DBD::Pg effectively sends:
>     PREPARE dbdpg_1(unknown) AS SELECT from FROM bar WHERE baz = ?';

Somehow, emulating the above doesn't attract me nearly as much as it
evidently does you.  What happens in cases where the parser is unable
to infer a data type, or infers the wrong one?  Or even if it does
infer a type, how do you find out what it inferred?  I'm not excited
about building a capability that fails to address any except the simplest
use case.
        regards, tom lane


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

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