Re: "text" type is java.sql.Types.varchar not longvarchar

Поиск
Список
Период
Сортировка
От Barry Lind
Тема Re: "text" type is java.sql.Types.varchar not longvarchar
Дата
Msg-id 3E9ADD96.5010308@xythos.com
обсуждение исходный текст
Ответ на "text" type is java.sql.Types.varchar not longvarchar  (. <alzina@inicia.es>)
Список pgsql-jdbc
I personally use text instead of VARCHAR.  So for me the current mapping
makes sense. I generally am not conserned with the length restrictions
the VARCHAR type imposes even though they are all short.

thanks,
--Barry


. wrote:
> If you get the data type of a column defined as 'text', the driver maps this
> type to java.sql.Types.VARCHAR with a column size of '-1'.
>
> It wouldn't be better if the 'text' type, that, as its name says is not a mere
> 'varchar', was mapped to java.sql.Types.LONGVARCHAR?
>
> Looks like *no* PostgreSQL type that fit into this java type, so why do it this
> way?
>
>
>
> Manel
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>


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

Предыдущее
От: Barry Lind
Дата:
Сообщение: Re: DriverManager.getConnection hangs
Следующее
От: Barry Lind
Дата:
Сообщение: Re: unterminated quoted string