pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
(no subject)
4+ messages / 4 participants
[nested] [flat]

* (no subject)
@ 2001-02-06 08:54  Philippe Rochat <Philippe.Rochat@epfl.ch>
  0 siblings, 1 reply; 4+ messages in thread

From: Philippe Rochat @ 2001-02-06 08:54 UTC (permalink / raw)
  To: pgsql-admin

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 ... !

_____________________________________________________________________
Philippe Rochat, (Yahoo-id:philipperochat)	EPFL   DI-LBD
Database Laboratory 					CH-1015 LAUSANNE
Swiss Federal Institute of Technology (EPFL) 	tel:++41 21 693 52 53
Beep-EPFL: 181 4644					fax:++41 21 693 51 95
Private: Grammont, 9 1007 LAUSANNE 			tel:++41 21 617 03 05
mailto:Philippe.Rochat@epfl.ch			GSM:++41 76 384 52 53

Attachments:

  Field.java (application/octet-stream, 5.1K) download

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: [ADMIN]
@ 2001-02-06 17:53  Bruce Momjian <pgman@candle.pha.pa.us>
  parent: Philippe Rochat <Philippe.Rochat@epfl.ch>
  0 siblings, 1 reply; 4+ messages in thread

From: Bruce Momjian @ 2001-02-06 17:53 UTC (permalink / raw)
  To: Philippe Rochat <Philippe.Rochat@epfl.ch>; +Cc: PostgreSQL jdbc list <pgsql-jdbc@postgresql.org>

[ 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 }; /**
^ permalink raw reply [nested|flat] 4+ messages in thread

* Re: Re: [ADMIN]
@ 2001-02-07 08:40  Peter T Mount <peter@retep.org.uk>
  parent: Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Peter T Mount @ 2001-02-07 08:40 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: Philippe Rochat <Philippe.Rochat@epfl.ch>; PostgreSQL jdbc list <pgsql-jdbc@postgresql.org>

Quoting Bruce Momjian <pgman@candle.pha.pa.us>:

> [ 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 ... !

Not sure what address they are trying to use there...

> JDBC folks, here is a patch someone submitted.

I'll apply it shortly (have a few commits to make today anyhow).

Peter

-- 
Peter Mount peter@retep.org.uk
PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/
RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: [ADMIN]
@ 2001-02-07 17:31  Barry Lind <barry@xythos.com>
  parent: Peter T Mount <peter@retep.org.uk>
  0 siblings, 0 replies; 4+ messages in thread

From: Barry Lind @ 2001-02-07 17:31 UTC (permalink / raw)
  To: PostgreSQL jdbc list <pgsql-jdbc@postgresql.org>

I have a question/concern with the proposed patch here.  The assumption
that a column of type oid is a BLOB I think is incorrect.  OIDs can also
be used as a simple FK reference from one table to another since they
are unique.  I think the current behavior with regards to OIDs is more
correct in mapping them to their true data type of integer.

thanks,
--Barry


Peter T Mount wrote:
> 
> Quoting Bruce Momjian <pgman@candle.pha.pa.us>:
> 
> > [ 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 ... !
> 
> Not sure what address they are trying to use there...
> 
> > JDBC folks, here is a patch someone submitted.
> 
> I'll apply it shortly (have a few commits to make today anyhow).
> 
> Peter
> 
> --
> Peter Mount peter@retep.org.uk
> PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/
> RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2001-02-07 17:31 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-02-06 08:54  Philippe Rochat <Philippe.Rochat@epfl.ch>
2001-02-06 17:53 ` Re: [ADMIN] Bruce Momjian <pgman@candle.pha.pa.us>
2001-02-07 08:40   ` Re: Re: [ADMIN] Peter T Mount <peter@retep.org.uk>
2001-02-07 17:31     ` Re: [ADMIN] Barry Lind <barry@xythos.com>

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