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

From: Barry Lind <blind(at)xythos(dot)com>
To: "(dot)" <alzina(at)inicia(dot)es>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: "text" type is java.sql.Types.varchar not longvarchar
Date: 2003-04-14 16:11:02
Message-ID: 3E9ADD96.5010308@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)postgresql(dot)org
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Peter Royal 2003-04-14 16:33:09 Index metadata not sorted by ORDINAL_POSITION
Previous Message Barry Lind 2003-04-14 16:08:31 Re: DriverManager.getConnection hangs