Received: from ntmail.samse.fr ([195.101.77.170]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f4EMnHA29895 for ; Mon, 14 May 2001 18:49:18 -0400 (EDT) (envelope-from gilles@darold.net) Received: from netstat.samse.fr by ntmail.samse.fr with SMTP (Microsoft Exchange Internet Mail Service Version 5.0.1461.56) id 2K5FYFWT; Tue, 15 May 2001 00:49:11 +0200 Message-ID: <3B0060E8.EDCF98D7@darold.net> Date: Tue, 15 May 2001 00:49:12 +0200 From: Gilles DAROLD Reply-To: gilles@darold.net X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0smp i686) X-Accept-Language: en MIME-Version: 1.0 To: Simon Crute CC: pgsql-general@postgresql.org Subject: Re: Re: case sensitivity References: <22535.989723392@sss.pgh.pa.us> <989749499.4806.0.nnrp-08.9e981bad@news.demon.co.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200105/632 X-Sequence-Number: 9506 Simon Crute wrote: > If anyone's interested, > I found the answer to my first question buried in the DBI docs > (fetch_hashref("NAME_uc") if anyone's interested) > > With regards to case > > AFAIK we're exactly as picky about it as Oracle, just in the opposite > > direction. > > I think there's some differences in function names. In oracle I think you > can get away with count(), or COUNT(), in postgres it has to be COUNT(), but > this was probably going through the perl DBI, so that may have been > complicating things. Oracle doesn't care about case sensitive in queries, Postgres too if you don't quote tablename or columnname at creation time. If you use quote and upercase at creation time you may quote it as well in you're queries. Function can be lower or upper case it doesn't matter at least in PostgreSQL 7.0.3. SELECT COUNT(*) FROM "T_USERPREF"; select count(*) from "T_USERPREF"; Works well. But you want columname returned as uppercase and you find the way...