"text" type is java.sql.Types.varchar not longvarchar - Mailing list pgsql-jdbc

From .
Subject "text" type is java.sql.Types.varchar not longvarchar
Date
Msg-id 20030411184215.056934fe.alzina@inicia.es
Whole thread Raw
Responses Re: "text" type is java.sql.Types.varchar not longvarchar
List 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


pgsql-jdbc by date:

Previous
From: Barry Lind
Date:
Subject: Re: Performance of batches with Statements and PreparedStatements
Next
From: "kangch"
Date:
Subject: DriverManager.setLoginTimeout question