Re: Cursors and PHP

Поиск
Список
Период
Сортировка
От Steve Manes
Тема Re: Cursors and PHP
Дата
Msg-id 40816B27.80904@magpie.com
обсуждение исходный текст
Ответ на Re: Cursors and PHP  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane wrote:

> Steve Manes <smanes@magpie.com> writes:
>
>>     $query = "SELECT get_user_data('$cursor', $user_id);FETCH ALL IN
>>$cursor;";
>
>
>>     $res =& $dbh->query($query);
>
>
> Hm.  This will return two different, not-compatible result sets (the
> SELECT's output and then the FETCH's).

Without the FETCH in that compound PHP query however, nothing gets
returned from the SELECT. I'm not sure why but maybe it's because
PEAR::DB doesn't have any direct support for cursors so it's just
grabbing a result set.




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