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

From: (dot) <alzina(at)inicia(dot)es>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: "text" type is java.sql.Types.varchar not longvarchar
Date: 2003-04-11 16:42:15
Message-ID: 20030411184215.056934fe.alzina@inicia.es
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


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

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message George Peiov 2003-04-11 21:17:12 DriverManager.getConnection hangs
Previous Message Barry Lind 2003-04-11 15:46:04 Re: error getString() --> decodeUTF8 /