pg_pconnect+PostgreSQL cursors - Mailing list pgsql-php

From sector119@mail.ru
Subject pg_pconnect+PostgreSQL cursors
Date
Msg-id 20021227061010.GA20033@city.gov.te.ua
Whole thread Raw
Responses Re: pg_pconnect+PostgreSQL cursors
List pgsql-php
Hi all

<?
$connection = pg_pconnect("dbname=$db user=$user password=$password");
if (!isset($page))
{
    pg_exec($connection, "BEGIN WORK");
    pg_exec($connection, "DECLARE all_data CURSOR FOR SELECT id,body FROM test")
}

$result = pg_exec($connection, "FETCH 1 FROM all_data");
$info = pg_fetch_array($result, 0);
print "|$info[0]|$info[1]|<br>\n";
?>

When I execute this script at first without page parameter I'v got data to info array! when I execute it at other times
I'vgot nothing :( 

I've got closing of cursor and transaction! why??? I use permanent connection, why I've got closing of cursor and
transaction!???

--
WBR, sector119

pgsql-php by date:

Previous
From: Bruce Young
Date:
Subject: Re: table not showing in explorer - Solved
Next
From: sector119@mail.ru
Date:
Subject: pg_pconnect