Skip site navigation (1) Skip section navigation (2)

Re: ERROR: cannot find attribute 10 of???

From: missive(at)localhost(dot)net (Lee Harr)
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: ERROR: cannot find attribute 10 of???
Date: 2001-01-06 21:20:50
Message-ID: 93827i$1lv0$ (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On Wed, 3 Jan 2001 21:07:22 +0100, ineck <inex(at)poczta(dot)onet(dot)pl> wrote:
>Anyone can help with that one?
>Warning: PostgresSQL query failed: ERROR: cannot find attribute 10 of
>relation pg_am in [..]
>Warning: 0 is not a PostgresSQL result index in

Sounds like PHP to me.

Usually when you get a "0 is not a ..." it means that you failed to
set the variable used in your function call.

ie. you might have pg_fetch_array( $result, 10 ) but had
pg_exec( $database, $query );   instead of
$result = pg_exec( $database, $query );

>Thanks in advice
Lee Harr

In response to

pgsql-hackers by date

Next:From: bpalmerDate: 2001-01-06 21:47:28
Subject: CVS regression test failure on OBSD
Previous:From: Tom LaneDate: 2001-01-06 21:07:33
Subject: Re: global/pg_database ?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group