php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45625 Oops
Submitted: 2008-07-25 13:15 UTC Modified: 2008-07-25 14:58 UTC
From: srabot at steek dot com Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 5.2CVS-2008-07-25 (CVS) OS: Debian Etch stable
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
40 - 15 = ?
Subscribe to this entry?

 
 [2008-07-25 13:15 UTC] srabot at steek dot com
Description:
------------
I create a temp table in postgres to store big amount of data and avoid LOCKS. Just after I declare a cursor on my table to fetch results.

After a certain amount of MOVE / FETCH I get strange behaviour.

I run :
 * PHP 5.2.0-8+etch11 CLI
 * Postgresql 8.3.3


Reproduce code:
---------------
http://absynthe.pastebin.com/f3a50f01f

Expected result:
----------------
I expect pg_affected_rows($move) to return the same value as $offset.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-25 14:58 UTC] srabot at steek dot com
My mistake.

MOVE query was not nescessary.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 22:01:26 2024 UTC