JDBC ResultSetMetaData.getColumnType and getColumnTypeName work properly? - Mailing list pgsql-interfaces

From Shankha Mitra
Subject JDBC ResultSetMetaData.getColumnType and getColumnTypeName work properly?
Date
Msg-id 36848562.83920B1D@antrim.com
Whole thread Raw
Responses Re: [INTERFACES] JDBC ResultSetMetaData.getColumnType and getColumnTypeName work properly?
List pgsql-interfaces
If I create a table thus:

CREATE TABLE title (
    title        text    NOT NULL,
    editions    int4[]
);

and through the JDBC ResultMetaData.getColumnType() interface try to get
the
type of the 'editions' column, I get the value sql.Types.OTHER.  I would
have
guessed it would have been Types.ARRAY.  Am I missing something?

Also getColumnTypeName() returns _int4; is that correct?

Shankha Mitra


As an aside, I decided to print out the values of all the JDBC types and
I get:
ARRAY=2003
BIGINT=-5
BINARY=-2
BIT=-7
BLOB=2004
CHAR=1
CLOB=2005
DATE=91
DECIMAL=3
DISTINCT=2001
DOUBLE=8
FLOAT=6
INTEGER=4
JAVA_OBJECT=2000
LONGVARBINARY=-4
LONGVARCHAR=-1
NULL=0
NUMERIC=2
OTHER=1111
REAL=7
REF=2006
SMALLINT=5
STRUCT=2002
TIME=92
TIMESTAMP=93
TINYINT=-6
VARBINARY=-3
VARCHAR=12

pgsql-interfaces by date:

Previous
From: Mark Nielsen
Date:
Subject: my perl interface to postgresql
Next
From: cheng wah yeung
Date:
Subject: ...