pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Jaroslaw J. Pyszny <arghil@poczta.onet.pl>
Cc: pg@fastcrypt.com
Cc: pgsql-jdbc <pgsql-jdbc@postgresql.org>
Subject: Re: Auto-increment serial (Postgresql JDBC driver w/
Date: Thu, 23 Sep 2004 00:40:42 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0409230028320.28320@leary.csoft.net> (raw)
In-Reply-To: <1095908898.30959.5.camel@lx.siec>
References: <1095725344.10857.107.camel@lx.siec>
	<Pine.BSO.4.56.0409202046080.9396@leary.csoft.net>
	<1095794747.18680.23.camel@lx.siec>
	<1095798675.1557.122.camel@localhost.localdomain>
	<1095807031.1556.129.camel@localhost.localdomain>
	<1095880271.22986.37.camel@lx.siec>
	<Pine.BSO.4.56.0409221454160.32134@leary.csoft.net>
	<1095908898.30959.5.camel@lx.siec>



On Wed, 23 Sep 2004, Jaroslaw J. Pyszny wrote:

> W li¶cie z sro, 22-09-2004, godz. 21:59, Kris Jurka pisze: 
> > On Wed, 22 Sep 2004, Jaroslaw J. Pyszny wrote:
> [...]
> 
> second patch
> 

I've applied the ResultSetMetaData.isAutoIncrement part of this patch, but
you changed what you were doing in DatabaseMetaData and I wanted to
discuss that first.  Now you are adding the serial pseudotypes to the
getTypeInfo results.

1) With the addition of the new types, should we only return true for 
AUTO_INCREMENT on the serial types and not the integer types?

2) Is it necessary to return all four versions of the types (serial, 
serial4, bigserial, and serial8)?  To me this seems to just add confusion 
and perhaps we should just pick a pair of these to use.

3) If we are going to add these as valid types, it seems we should alter 
DatabaseMetaData.getColumns to return "serial" for the TYPE_NAME column as 
well.

Kris Jurka



view thread (13+ messages)  latest in thread

Message-ID: <Pine.BSO.4.56.0409230028320.28320@leary.csoft.net>
Permalink:  ../Pine.BSO.4.56.0409230028320.28320@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.56.0409230028320.28320@leary.csoft.net

 · 

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-jdbc@postgresql.org
  Cc: books@ejurka.com, arghil@poczta.onet.pl, pg@fastcrypt.com
  Subject: Re: Auto-increment serial (Postgresql JDBC driver w/
  In-Reply-To: <Pine.BSO.4.56.0409230028320.28320@leary.csoft.net>
  References: <1095725344.10857.107.camel@lx.siec> <Pine.BSO.4.56.0409202046080.9396@leary.csoft.net> <1095794747.18680.23.camel@lx.siec> <1095798675.1557.122.camel@localhost.localdomain> <1095807031.1556.129.camel@localhost.localdomain> <1095880271.22986.37.camel@lx.siec> <Pine.BSO.4.56.0409221454160.32134@leary.csoft.net> <1095908898.30959.5.camel@lx.siec> <Pine.BSO.4.56.0409230028320.28320@leary.csoft.net>

* 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