From: Raymond O'Donnell <rod@iol.ie>
To: Félix Sánchez Rodríguez <fesanch@ciego.cult.cu>
Cc: PostgreSQLPHP <pgsql-php@postgresql.org>
Subject: Re: See postgre tables from PHP code
Date: Wed, 12 Nov 2008 09:34:31 +0000
Message-ID: <491AA327.7020200@iol.ie> (raw)
In-Reply-To: <001501c942e9$665772b0$3000a8c0@atenea>
References: <001501c942e9$665772b0$3000a8c0@atenea>
On 10/11/2008 04:04, Félix Sánchez Rodríguez wrote:
> Beside, I opened my PostgreSQL interface, called pgAdmin and run the
> same query inside the ATM database and the error was the same: "relation
> 'usuarios' was not found". It's like something else was needed to access
> the DB tables.
Did you by any chance create the tables from pgAdmin and use mixed-case
names?
PostgreSQL by default will fold names to lower-case unless you put
double-quotes around them, so e.g. "Usarios" is a different table from
"usarios".
When creating a table from pgAdmin, if you mix upper- and lower-case in
a table name then pgAdmin double-quotes the names to preserve the case;
and if you then SELECT from the table without double-quoting the name,
Postgres fold the names to lower-case and then can't find the table.
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, fesanch@ciego.cult.cu
Subject: Re: See postgre tables from PHP code
In-Reply-To: <491AA327.7020200@iol.ie>
References: <001501c942e9$665772b0$3000a8c0@atenea> <491AA327.7020200@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