BUG #3894: JDBC DatabaseMetaData.getTables is inconsistently case-sensitive with schema name

Поиск
Список
Период
Сортировка
От Adam Hardy
Тема BUG #3894: JDBC DatabaseMetaData.getTables is inconsistently case-sensitive with schema name
Дата
Msg-id 200801222342.m0MNgHEf083925@wwwmaster.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #3894: JDBC DatabaseMetaData.getTables is inconsistently case-sensitive with schema name  (Kris Jurka <books@ejurka.com>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      3894
Logged by:          Adam Hardy
Email address:      adam.hardy@cyberspaceroad.com
PostgreSQL version: 8.2.5
Operating system:   Linux
Description:        JDBC DatabaseMetaData.getTables is inconsistently
case-sensitive with schema name
Details:

I created a schema with this cmd:

create schema DEV;

set search_path to DEV;

but then DatabaseMetaData.getTables(null, "DEV", "%", new String[]
{"TABLE"}) returned an empty resultset.

However giving it the schema name "dev" returns the full resultset.

It took me 4 hours to isolate this problem which was hidden in the code of
DbUnit.

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: bad message or bad privilege check in foreign key constraint
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: BUG #3894: JDBC DatabaseMetaData.getTables is inconsistently case-sensitive with schema name