| От | Thomas Kellerer |
|---|---|
| Тема | Re: Driver not returning the type for TYPEs |
| Дата | |
| Msg-id | hn1acl$95j$1@dough.gmane.org обсуждение исходный текст |
| Ответ на | Driver not returning the type for TYPEs (Thomas Kellerer <spam_eater@gmx.net>) |
| Ответы |
Re: Driver not returning the type for TYPEs
Re: Driver not returning the type for TYPEs |
| Список | pgsql-jdbc |
Thomas Kellerer wrote on 07.03.2010 22:45: > Hi, > > I just noticed a minor glitchin the driver (8.4) > > When creating types using e.g.: > > CREATE TYPE my_tabpe AS (some_data varchar(100)); > > DatabaseMetaData.getTables() will return that type, but the value for > the column TABLE_TYPE is null. > > I think if the driver returns non-table objects (which is fine, a lot of > drivers are doing that), the TABLE_TYPE column of the result set should > contain a proper value. > > Regards > Thomas I had a quick look at the source code, and it seems quite simple to fix. I have attached a patch agains CVS head which (as far as I can tell) fixes this. It also supports getTables() passing "TYPE" in the String array to select which types to show. I hope the patch is OK, I have not used the diff tool before ;) But the changes are really very minimal, I hope I found all places.... Regards Thomas
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера