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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2019 The PHP Group
All rights reserved.
Last updated: Sat Sep 21 00:01:27 2019 UTC