Re: NullPointerException in TypeInfoCache.getSQLType

Поиск
Список
Период
Сортировка
От Vladimir Sitnikov
Тема Re: NullPointerException in TypeInfoCache.getSQLType
Дата
Msg-id CAB=Je-FxjjzZ5f7rVZOjvmF9JZPf9Ca=NPCpHpfqmnAVv8++9A@mail.gmail.com
обсуждение исходный текст
Ответ на NullPointerException in TypeInfoCache.getSQLType  (Zachary Marshall <Zachary.Marshall@sas.com>)
Ответы Re: NullPointerException in TypeInfoCache.getSQLType  (Zachary Marshall <Zachary.Marshall@sas.com>)
Re: NullPointerException in TypeInfoCache.getSQLType  (Zachary Marshall <Zachary.Marshall@sas.com>)
Список pgsql-jdbc
Do you have a reproducer?

Can you check if you have types with typname of null?
select * from pg_catalog.pg_type t where t.typname is null

>  all are typically creating new schemas

Can it be like:
1) org.postgresql.jdbc.PgDatabaseMetaData#getTypeInfo loads all the type ids
2) as it reaches org.postgresql.jdbc.TypeInfoCache#getPGType(int), the
type is no longer in the DB (e.g. dropped)
?

Can you add logging to TypeInfoCache#getPGType & rebuild & test to log
the actual oid in question?

Vladimir


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

Предыдущее
От: Zachary Marshall
Дата:
Сообщение: NullPointerException in TypeInfoCache.getSQLType
Следующее
От: Vladimir Sitnikov
Дата:
Сообщение: Re: NullPointerException in TypeInfoCache.getSQLType