Received: from localhost.localdomain (dialup334.nmia.com [206.206.163.134]) by hub.org (8.9.1/8.9.1) with ESMTP id QAA27653 for ; Tue, 17 Nov 1998 16:27:39 -0500 (EST) (envelope-from joconnor@roadrunner.com) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.8.7/8.8.7) with SMTP id OAA00838 for ; Tue, 17 Nov 1998 14:25:40 -0700 From: "Jay O'Connor" To: pgsql-general@postgreSQL.org Subject: Re: [GENERAL] problem of upper/lower case in table names Date: Tue, 17 Nov 1998 14:22:47 -0700 X-Mailer: KMail [version 0.7.9] Content-Type: text/plain References: <3651DBE3.20A775E1@planetweb.com> MIME-Version: 1.0 Message-Id: <9811171425400E.00469@localhost.localdomain> Content-Transfer-Encoding: 8bit >Hi all, > >i've got this annoying problem : if you create a table with an uppercase >name, postgres transforms it in lower case. After that, if you try to >retrieve the primary keys for this table ( still using the uppercase >name as argument ) using the JDBC driver >DatabaseMetaData.getPrimaryKeys(), it always return an empty result set >since the SQL command used in the driver requests a case sensitive match >for the table name ( and bc.relname ~ table ). >I've a workaround in the driver ( using bc.relname ~* table ) but i'd >like to know who's fault it is ( mine or postgres ) .... >Thanks for your advices & help I've run into the same problem just creating a table with a name including an uppercase. The name gets converted to all lowercase but then I seem unable to DROP the table. >NB : i'm using postgres 6.4 with jdbc driver included in this release. -- Jay O'Connor joconnor@roadrunner.com http://www.roadrunner.com/~joconnor "God himself plays the bass strings first when He tunes the soul"