Re: Fix setArray() when using the v3 protocol (was Re: Postgres 8.0 + JDBC)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Fix setArray() when using the v3 protocol (was Re: Postgres 8.0 + JDBC)
Дата
Msg-id 27750.1097204681@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Fix setArray() when using the v3 protocol (was Re: Postgres 8.0 + JDBC)  (Oliver Jowett <oliver@opencloud.com>)
Ответы Re: Fix setArray() when using the v3 protocol (was Re: Postgres
Список pgsql-jdbc
Oliver Jowett <oliver@opencloud.com> writes:
> !         // Use a typename that is "_" plus the base type; this matches how the
> !         // backend looks for array types.
> !         String typename = "_" + x.getBaseTypeName();
> !         int oid = connection.getPGType(typename);
> !         if (oid == Oid.INVALID)
> !             throw new PSQLException("postgresql.prep.typenotfound", PSQLState.INVALID_PARAMETER_TYPE, typename);

Er, what about schema-qualified type names?  Also, are you sure that
getBaseTypeName will return the correct internal type name, eg "int8"
not "bigint"?

            regards, tom lane

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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: Using gettext (was Translation updates: errors_ru.properties)
Следующее
От: Oliver Jowett
Дата:
Сообщение: tightening up on use of oid 0