pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Jaroslaw J. Pyszny <arghil@poczta.onet.pl>
Cc: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc <pgsql-jdbc@postgresql.org>
Subject: Re: Auto-increment serial (Postgresql JDBC driver w/
Date: Tue, 21 Sep 2004 16:31:15 -0400
Message-ID: <1095798675.1557.122.camel@localhost.localdomain> (raw)
In-Reply-To: <1095794747.18680.23.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>
This is probably a much more portable way to get the same information.
select column_default from information_schema.columns where table_name
= 'xyz';
Dave
On Tue, 2004-09-21 at 15:25, Jaroslaw J. Pyszny wrote:
> W liĆcie z wto, 21-09-2004, godz. 03:50, Kris Jurka pisze:
> > On Mon, 21 Sep 2004, Jaroslaw J. Pyszny wrote:
> >
>
> > The basic idea looks good to me, but you've made a mistake in the
> > isAutoIncrement() method. You are using the column number from the
> > ResultSet to look up the default when you need to actually use that
> > column's position in the table. In fact it looks like the whole method
> > body should be moved into the Field class much like the isNullable method
> > does. This also avoid the contrived hash key value.
> >
> > Finally we prefer patches in context diff format (diff -c).
> Thanks :)
> I'll try fix it.
>
> Jarek
--
Dave Cramer
519 939 0336
ICQ # 14675561
www.postgresintl.com
view thread (13+ messages) latest in thread
Message-ID: <1095798675.1557.122.camel@localhost.localdomain> Permalink: ../1095798675.1557.122.camel@localhost.localdomain/ Also on: postgresql.org/message-id/1095798675.1557.122.camel@localhost.localdomain ·
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: pg@fastcrypt.com, arghil@poczta.onet.pl, books@ejurka.com Subject: Re: Auto-increment serial (Postgresql JDBC driver w/ In-Reply-To: <1095798675.1557.122.camel@localhost.localdomain> 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> * 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