| От | David Wheeler |
|---|---|
| Тема | Re: Perl & DBI/DBD::Pg confusion with finish |
| Дата | |
| Msg-id | Pine.LNX.4.21.0103012210020.15001-100000@theory обсуждение исходный текст |
| Ответ на | Perl & DBI/DBD::Pg confusion with finish (David Lynn <davidl@ayamba.com>) |
| Ответы |
Re: Perl & DBI/DBD::Pg confusion with finish
|
| Список | pgsql-general |
On Thu, 1 Mar 2001, David Lynn wrote:
>
> Hello -
>
> When using DBD::Pg through DBI, can somebody tell me if it is necessary
> to be calling the $sth->finish routine? The DBI.pm documentation states
> that there is no need to call it if you call $sth->fetchrow_xxxref until
> the rows are exhausted - finish should get called automatically, and
> $sth->{'Active'} should change to false.
We've found that DBD::Pg doesn't do this. So we either have to call
$sth->finish every time, or prepare the statement with
$dbh->prepare_cached() and passing the active flag as true. It shouldn't
be this way, but it is.
HTH,
David
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера