From: | Raymond O'Donnell <rod(at)iol(dot)ie> |
---|---|
To: | Félix Sánchez Rodríguez <fesanch(at)ciego(dot)cult(dot)cu> |
Cc: | PostgreSQLPHP <pgsql-php(at)postgresql(dot)org> |
Subject: | Re: See postgre tables from PHP code |
Date: | 2008-11-12 09:34:31 |
Message-ID: | 491AA327.7020200@iol.ie |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
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(at)iol(dot)ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------
From | Date | Subject | |
---|---|---|---|
Next Message | Andy Anderson | 2008-11-12 13:16:34 | Re: See postgre tables from PHP code |
Previous Message | Andrew McMillan | 2008-11-12 09:03:00 | Re: See postgre tables from PHP code |