Thread

  1. Re: PQgetvalue: ERROR! tuple number 0 is out of range 0..-1

    Jim Mercer <jim@reptiles.org> — 2001-06-07T12:39:47Z

    On Thu, Jun 07, 2001 at 08:36:48AM -0400, mlw wrote:
    > I get this a lot and it keeps me from backing up the database.
    > 
    > This database is still 7.0.3. Anyone knows what cases it and how to correct
    > it, because I can't dump to a new database.
    
    is this coming from one of your applications?
    "PQgetvalue: ERROR! tuple number 0 is out of range 0..-1"
    
    if so, the it is possible that the application is doing a select, which
    returns 0 rows.
    
    and your application is attempting to access the value of a non-existant row.
    
    -- 
    [ Jim Mercer        jim@reptiles.org         +1 416 410-5633 ]
    [ Now with more and longer words for your reading enjoyment. ]