From: Raymond O'Donnell <rod@iol.ie>
To: Sean <sean712@gmail.com>
Cc: pgsql-php@postgresql.org
Subject: Re: ERROR: relation "userroles" does not exist
Date: Fri, 10 Oct 2008 19:17:08 +0100
Message-ID: <48EF9C24.40201@iol.ie> (raw)
In-Reply-To: <d953ccea0810101030r285012bdv9029c5763d6955cc@mail.gmail.com>
References: <d953ccea0810101030r285012bdv9029c5763d6955cc@mail.gmail.com>
On 10/10/2008 18:30, Sean wrote:
> *I keep receiving the following when trying to select from a table in my
> database. the Tables are there i see them in pgAdmin...
>
> *Warning*: pg_query_params() [function.pg-query-params
> <http://localhost:8888/HH/function.pg-query-params;]: Query failed:
> ERROR: relation "userroles" does not exist
Would you have defined the table using quoted upper-case? PG folds names
to lower-case unless you double quote them, so:
test=# create table test();
CREATE TABLE
test=# create table "Test"();
CREATE TABLE
test=# \dt
List of relations
Schema | Name | Type | Owner
--------+------+-------+----------
public | Test | table | postgres
public | test | table | postgres
(2 rows)
Ray.
------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: rod@iol.ie, sean712@gmail.com
Subject: Re: ERROR: relation "userroles" does not exist
In-Reply-To: <48EF9C24.40201@iol.ie>
References: <d953ccea0810101030r285012bdv9029c5763d6955cc@mail.gmail.com> <48EF9C24.40201@iol.ie>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox