Re: TypeInfoCache

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: TypeInfoCache
Дата
Msg-id Pine.BSO.4.64.0712192320120.16373@leary.csoft.net
обсуждение исходный текст
Ответ на Re: TypeInfoCache  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-jdbc

On Wed, 19 Dec 2007, Tom Lane wrote:

> Oliver Jowett <oliver@opencloud.com> writes:
>
>> But a "varchar" (with no limit) and "text" *are* interchangeable, which
>> is why we identify text as VARCHAR
>
> But note that varchar-with-no-limit is itself a Postgres-ism: it's
> not allowed by the standard.
>

So should varchar(10000000) be returned as VARCHAR or LONGVARCHAR?

Right now we return 0 for the precision of text or varchar without length.
Perhaps we should return something else for that similar to how we changed
the result of ResultSetMetaData.getColumnDisplaySize to return
Integer.MAX_VALUE instead of -1 for types without lengths.

Kris Jurka

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

Предыдущее
От: "Jan de Visser"
Дата:
Сообщение: TypeInfoCache
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: TypeInfoCache