From: | "Taral" <taral(at)cyberjunkie(dot)com> |
---|---|
To: | "Jay O'Connor" <joconnor(at)roadrunner(dot)com>, <pgsql-general(at)postgreSQL(dot)org> |
Subject: | RE: [GENERAL] problem of upper/lower case in table names |
Date: | 1998-11-17 21:55:22 |
Message-ID: | 001001be1274$f9b2bf20$8a14f7d0@taral.dobiecenter.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-interfaces |
> >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
Try quoting the names... i.e. CREATE TABLE "TEST" etc.
Taral
From | Date | Subject | |
---|---|---|---|
Next Message | Peter T Mount | 1998-11-18 06:41:55 | Re: [INTERFACES] problem of upper/lower case in table names |
Previous Message | Jay O'Connor | 1998-11-17 21:22:47 | Re: [GENERAL] problem of upper/lower case in table names |
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas G. Lockhart | 1998-11-18 03:23:30 | Re: [HACKERS] PREPARE |
Previous Message | Jay O'Connor | 1998-11-17 21:22:47 | Re: [GENERAL] problem of upper/lower case in table names |