pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Philippe Rochat <Philippe.Rochat@epfl.ch>
Cc: PostgreSQL jdbc list <pgsql-jdbc@postgresql.org>
Subject: Re: [ADMIN]
Date: Tue, 6 Feb 2001 12:53:25 -0500 (EST)
Message-ID: <200102061753.MAA02516@candle.pha.pa.us> (raw)
In-Reply-To: <000f01c0901a$6831d6a0$2b4db280@lbdpc11>

[ Charset ISO-8859-1 unsupported, converting... ]
> Attached is a modified version of Field.java for the JDBC driver.
> I think types were not so correctly defined, and that this version
> should be more well suiting last version of postgres.
> 
> Any comment welcome,
> Ph.R.
> 
> BTW: author e-mail in the README of jdbc in the distrib does not 
> exist anymore ... !
> 

JDBC folks, here is a patch someone submitted.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Attachments:

/bjm/diff (text/plain, 2.3K) download *** Field.java Mon Oct 9 12:46:20 2000 --- /bjm/Field.java Tue Feb 6 12:51:37 2001 *************** *** 115,132 **** */ private static final String types[] = { "int2", ! "int4","oid", "int8", ! "cash","money", "numeric", "float4", "float8", ! "bpchar","char","char2","char4","char8","char16", "varchar","text","name","filename", "bool", "date", ! "time", ! "abstime","timestamp" }; /** --- 115,133 ---- */ private static final String types[] = { "int2", ! "int4","serial", "int8", ! "decimal","money", "numeric", "float4", "float8", ! "bpchar","char", "varchar","text","name","filename", "bool", "date", ! "time","timetz", ! "timestamp","abstime", ! "oid" }; /** *************** *** 137,155 **** * Tip: keep these grouped together by the Types. value */ private static final int typei[] = { ! Types.SMALLINT, ! Types.INTEGER,Types.INTEGER, ! Types.BIGINT, ! Types.DECIMAL,Types.DECIMAL, ! Types.NUMERIC, ! Types.REAL, ! Types.DOUBLE, ! Types.CHAR,Types.CHAR,Types.CHAR,Types.CHAR,Types.CHAR,Types.CHAR, ! Types.VARCHAR,Types.VARCHAR,Types.VARCHAR,Types.VARCHAR, ! Types.BIT, ! Types.DATE, ! Types.TIME, ! Types.TIMESTAMP,Types.TIMESTAMP }; /** --- 138,158 ---- * Tip: keep these grouped together by the Types. value */ private static final int typei[] = { ! Types.SMALLINT, // 5 ! Types.INTEGER,Types.INTEGER, // 4 ! Types.BIGINT, // -5 ! Types.DECIMAL,Types.DECIMAL, // 3 ! Types.NUMERIC, // 2 ! Types.REAL, // 7 ! Types.DOUBLE, // 8 ! Types.CHAR,Types.CHAR, // 1 ! Types.VARCHAR,Types.VARCHAR,Types.VARCHAR,Types.VARCHAR, ! // 12 ! Types.BIT, // -7 ! Types.DATE, // 91 ! Types.TIME,Types.TIME, // 92 ! Types.TIMESTAMP,Types.TIMESTAMP, // 93 ! Types.BLOB // 2004 }; /**

view thread (4+ messages)  latest in thread

Message-ID: <200102061753.MAA02516@candle.pha.pa.us>
Permalink:  ../200102061753.MAA02516@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200102061753.MAA02516@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: pgman@candle.pha.pa.us, Philippe.Rochat@epfl.ch, pgsql-jdbc@postgresql.org
  Subject: Re: [ADMIN]
  In-Reply-To: <200102061753.MAA02516@candle.pha.pa.us>
  References: <000f01c0901a$6831d6a0$2b4db280@lbdpc11> <200102061753.MAA02516@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox