[PATCH] Datatype of OID should be VARBINARY, not INT

From: Nissim <nissim(at)nksystems(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: [PATCH] Datatype of OID should be VARBINARY, not INT
Date: 2000-06-16 14:43:19
Message-ID: 394A3D07.C1542D05@nksystems.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

The datatype returned by the ResultSetMetaData for OID should be
VARBINARY, not INT. Here's a patch for Field.java:

Index: src/interfaces/jdbc/org/postgresql/Field.java
===================================================================
RCS file:
/home/projects/pgsql/cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/Field.java,v
retrieving revision 1.1
diff -r1.1 Field.java
118c118
< "int4","oid",
---
> "int4",
129c129,130
< "abstime","timestamp"
---
> "abstime","timestamp",
> "oid"
141c142
< Types.INTEGER,Types.INTEGER,
---
> Types.INTEGER,
152c153,154
< Types.TIMESTAMP,Types.TIMESTAMP
---
> Types.TIMESTAMP,Types.TIMESTAMP,
> Types.VARBINARY

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Thomas Holmgren 2000-06-16 14:44:04 Perl interface
Previous Message Jim Caley 2000-06-16 13:03:21 Re: java.sql.SQLException: Bad Timestamp Format at 19 in 2000-06-14 15:48:18.80-04