php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18417 pg_fetch_array says Unable to jump to row 0 on PostgreSQL result index
Submitted: 2002-07-18 14:48 UTC Modified: 2002-07-28 06:52 UTC
From: mfahey at enter dot net Assigned:
Status: Not a bug Package: PostgreSQL related
PHP Version: 4.1.2 OS: freebsd-latest
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mfahey at enter dot net
New email:
PHP Version: OS:

 

 [2002-07-18 14:48 UTC] mfahey at enter dot net
pg_fetch_array says this  
"Unable to jump to row 0 on PostgreSQL result index"
when the query returns no results.

How is one suppose to Get an ASSOC array with using @ infront of the function and not getting an error when the query has no results?

$tmp = pg_fetch_array($results,0,PGSQL_ASSOC);


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-28 06:52 UTC] yohgaki@php.net
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.

If you ask php-general, someone may answer. Try 4.2.x or later if you would like, there are many new useful functions.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 04:01:30 2024 UTC