RE: [GENERAL] problem of upper/lower case in table names

Поиск
Список
Период
Сортировка
От Taral
Тема RE: [GENERAL] problem of upper/lower case in table names
Дата
Msg-id 001001be1274$f9b2bf20$8a14f7d0@taral.dobiecenter.com
обсуждение исходный текст
Ответ на Re: [GENERAL] problem of upper/lower case in table names  ("Jay O'Connor" <joconnor@roadrunner.com>)
Ответы RE: [GENERAL] problem of upper/lower case in table names  (Postgres DBA <postgres@nest.bistbn.com>)
Список pgsql-general
> >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

В списке pgsql-general по дате отправления:

Предыдущее
От: "Jay O'Connor"
Дата:
Сообщение: Re: [GENERAL] problem of upper/lower case in table names
Следующее
От: Peter T Mount
Дата:
Сообщение: Re: [INTERFACES] problem of upper/lower case in table names