Bug #674: JDBC: DatabaseMetaData.getColumns() "feature"

Поиск
Список
Период
Сортировка
От pgsql-bugs@postgresql.org
Тема Bug #674: JDBC: DatabaseMetaData.getColumns() "feature"
Дата
Msg-id 20020523144120.4E5DC475F22@postgresql.org
обсуждение исходный текст
Список pgsql-bugs
Holger Mitterwald (hrmitter@lsd.franken.de) reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
JDBC: DatabaseMetaData.getColumns() "feature"

Long Description
When trying to call the method DatabaseMetaData.getColumns with a a tablenamepattern (sTableName in the example) in
uppercase,no columns are returned as postgreSQL 7.2.1 stores its tablenames in lowercase. 

The TableNamePattern should be converted to lowercase for compatibilty reasons. Some Databases like Adabas and Oracle
expecthere uppercase strings, so the code has to be rewritten so that it runs with postgresql. 

Problem occured on
PostgreSQL 7.2.1
JDBC1
JDBC2



Sample Code
.....
sTableName = "CUSTOMER";
....
ResultSet columnMetaInfo = dbmeta.getColumns( connection.getCatalog(),
                                              schema,
                                              sTableName,
                                              null );


No file was uploaded with this report

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: in(NULL)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Numeric Datatype